Open juxky opened 1 year ago
i change my server.lua to
RegisterServerEvent('fuel:pay') AddEventHandler('fuel:pay', function(price) local xPlayer = ESX.GetPlayerFromId(source) local amount = ESX.Math.Round(price)
if price > 0 then xPlayer.removeMoney(amount) xPlayer.addWeapon("weapon_petrolcan") end
end)
but then when i buy it my Inv is frezz
i change my server.lua to
RegisterServerEvent('fuel:pay') AddEventHandler('fuel:pay', function(price) local xPlayer = ESX.GetPlayerFromId(source) local amount = ESX.Math.Round(price)
end)
but then when i buy it my Inv is frezz