Add files via upload

This commit is contained in:
Mustache Dom authored and GitHub committed 2023-12-07 15:45:48 -08:00
1 parent e29ded10a1
commit 2c3f9ea216
43 files changed
+10426

No files matched your search

+12
View File
@@ -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)