[Release] [ESX & Non-ESX] LegacyFuel system

It works for me. So it should work for everyone.

how i can change the fuel price?, Thanks in advance

where you spawn the vehicle for the ped

SetVehicleFuelLevel(vehicle, 100 + 0.0)
DecorSetFloat(vehicle, "_FUEL_LEVEL", GetVehicleFuelLevel(vehicle)) 

Someone can say me how i can put the possibility to buy a petrolcan?

1 Like

Sorry google translation

Good evening, I try the script his super good work, but the problem he has when we approach the station and we use the script takes MS and runs at 0.30 ms local server j 'imagine not 2 to 3 players that melts gasoline so 1.30ms by and large I’m not it if someone would have an idea or something else so that the script does not spend too much MS please

Thank you for your answer, good evening

How can we update fuel for the passenger of a vehicle?

legacyfuel is not working on me after fivem update, anyone having issue same on me?

1 Like

Yes we are having the same problem. We’ve been in a head spin all morning trying to figure out what was wrong! We changed nothing.

Lets wait someone to fixed it.

You guys need to be more specific about what’s not working… after a quick glance, everything appears to be working for me.

Toni, you’re allowed to try and fix it yourself too… it’s open-source, contribute back to the community by making a pull-request if you’re able to figure it out.

The fuel level and speed is working fine. But when you pull up to any pump, there is no ‘Press E to refuel’ or any ability to purchase a jerrycan. Nothing. It’s like the pumps are dead.

Odd, they appear to be working for me just fine…


Try restarting the resource or server?..

Hi, maybe someone can help me. when i buy a JerryCan it does not take money from my character… any idea?

hello good, could someone help me, I could not find where to change the price while filling the fuel in the station?

in config.lua… do you know why when i fill up fuel it had no cost?

Having problems when someone is near, I can’t fill the fuel successfully.
If I want to adjust the price of refueling, which part can I adjust?

Hello how can i change so my fuel is not going that fast down?

Is it hard converting this to vrp?

Anyone found a ‘simple’ way to disable the ability to purchase jerry cans from the gas station? Thanks!

how to remove de mph/kmh?