Update wholesale.lua
This commit is contained in:
1 parent
bd79cba415
commit
d9fbf56164
1 file changed
+1
-8
@@ -113,7 +113,7 @@ RegisterServerEvent('md-drugs:server:wholesaleheroin', function()
|
|||||||
local removed = Player.Functions.RemoveItem(v, item.amount)
|
local removed = Player.Functions.RemoveItem(v, item.amount)
|
||||||
Player.Functions.AddMoney("cash", item.amount * price)
|
Player.Functions.AddMoney("cash", item.amount * price)
|
||||||
TriggerClientEvent('QBCore:Notify', src, "You received " .. item.amount * price .. " Dollars!" , "success")
|
TriggerClientEvent('QBCore:Notify', src, "You received " .. item.amount * price .. " Dollars!" , "success")
|
||||||
heroinmoney = heroinmoney + removed
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
@@ -140,15 +140,8 @@ RegisterServerEvent('md-drugs:server:wholesalextc', function()
|
|||||||
if item and item.amount > 0 then
|
if item and item.amount > 0 then
|
||||||
local removed = Player.Functions.RemoveItem(v, item.amount)
|
local removed = Player.Functions.RemoveItem(v, item.amount)
|
||||||
Player.Functions.AddMoney("cash", item.amount * price)
|
Player.Functions.AddMoney("cash", item.amount * price)
|
||||||
xtcmoney = xtcmoney + removed
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if xtcmoney > 0 then
|
|
||||||
TriggerClientEvent('QBCore:Notify', src, "You received " .. item.amount * price .. " Dollars!" , "success")
|
|
||||||
else
|
|
||||||
TriggerClientEvent('QBCore:Notify', src, "Nothing To Sell", "error")
|
|
||||||
end
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user