Add files via upload
This commit is contained in:
1 parent
e29ded10a1
commit
2c3f9ea216
43 files changed
+10426
No files matched your search
@@ -0,0 +1,12 @@
|
||||
local QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
RegisterServerEvent("md-drugs:server:travellingmerchantox", function(amount, money, item, price)
|
||||
local src = source local Player = QBCore.Functions.GetPlayer(src)
|
||||
if Player.Functions.RemoveMoney(tostring(money), tonumber(price) * tonumber(amount)) then
|
||||
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items[item], "add", amount)
|
||||
Player.Functions.AddItem(item, amount)
|
||||
else
|
||||
TriggerClientEvent('QBCore:Notify', source, "Broke Ass Cant Afford This", "error")
|
||||
end
|
||||
|
||||
end)
|
||||
Reference in new issue
Block a user