InZidiuZ / LegacyFuel

A simple, lightweight fuel script for FiveM
GNU General Public License v3.0
78 stars 216 forks source link

petrolcan as item #99

Open juxky opened 1 year ago

juxky commented 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