Update wholesale.lua

This commit is contained in:
Mustache Dom authored and GitHub committed 2024-03-23 23:42:17 -07:00
1 parent bd79cba415
commit d9fbf56164
1 file changed
+1 -8
+1 -8
View File
@@ -113,7 +113,7 @@ RegisterServerEvent('md-drugs:server:wholesaleheroin', function()
local removed = Player.Functions.RemoveItem(v, item.amount)
Player.Functions.AddMoney("cash", item.amount * price)
TriggerClientEvent('QBCore:Notify', src, "You received " .. item.amount * price .. " Dollars!" , "success")
heroinmoney = heroinmoney + removed
end
end
end)
@@ -140,15 +140,8 @@ RegisterServerEvent('md-drugs:server:wholesalextc', function()
if item and item.amount > 0 then
local removed = Player.Functions.RemoveItem(v, item.amount)
Player.Functions.AddMoney("cash", item.amount * price)
xtcmoney = xtcmoney + removed
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)