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

we just remove dis local amount = ESX.Math.Round(price) and now its working :smiley:

I have that with jerrycan working

I need some help for reducing the speed that fuel goes down , it wastes 30% fuel in 1,50KM and in my opinion it is too fast!!

How do i remove the braking and going in reverse when the vehicle is on low fuel?

Can you send me that version with working jerrycan?

It’s the newest version

Anyone know how to fix the glitch with the fuel going up and down for no reason

Hi there.
Not sure if someone already ask it and if yes, i’m sorry about that.

I’m looking to set the fuel to a X amount when i spawn a vehicle ( Out of the garage, or society vehicle like police ) but after looking into the code i couldn’t find an line to juste set the amount of fuel into a vehicle. This is an issue for RP server where you take out a vehicle and you have 20fuel :confused:

If someone could help me on this on. Thanks.

Is there a way to change the amount of time it takes to fuel a vehicle if so where can I find it?

1 Like

In the fuel_client.lua, line 160. You just have to modify these numbers to your needs

local fuelToAdd = math.random(10, 20) / 10.0

I have the same trouble the fuel go up to ~65 and go down too quickly. Even when I disabled legacyfuel ressource it make the same. Is any change from fiveM ? Or maybe another ressource make this.

Guys, im using esx_drp_garage, and when players store cars and then retrieve, the cars get 0% fuel… same with impoud services

how to make car fuel sync to other player, i mean the fuel percentage is from player not from vehicles?? is that bug ?

Hello,
Can I disable HUD only?

Would it be possible to combine it with esx_ladderhud that is used for normaly for the basic needs?

2 Likes

Hello,
Fuel goes down too fast, how can I change it?
I already touched on the config file at Config.Classes & Config.FuelUsage but that change nothing …

Please help

Is there a way to make it that Cars that are spawned from mission have a certain amount of fuel? cz sometimes they spawn empty and that breaks all the RP

fuel_client.lua line 22 SetFuel(vehicle, math.random(500, 800) / 10)

500 means 50% 800 means 80%. So between 50 en 80% fuel

Its per category. Lower then 1.0 mean less fuel use. Like 0.9 or 0.7 etc. If yiur running esx_vehicleshop in which category the vehicle is.

– Class multipliers. If you want SUVs to use less fuel, you can change it to anything under 1.0, and vise versa.
Config.Classes = {
[0] = 1.0, – Compacts
[1] = 1.0, – Sedans
[2] = 1.0, – SUVs
[3] = 1.0, – Coupes
[4] = 1.0, – Muscle
[5] = 1.0, – Sports Classics
[6] = 1.0, – Sports
[7] = 1.0, – Super
[8] = 1.0, – Motorcycles
[9] = 0.6, – Off-road
[10] = 0.5, – Industrial
[11] = 0.5, – Utility
[12] = 1.0, – Vans
[13] = 0.0, – Cycles
[14] = 1.0, – Boats
[15] = 1.0, – Helicopters
[16] = 1.0, – Planes
[17] = 0.5, – Service
[18] = 0.5, – Emergency
[19] = 1.0, – Military
[20] = 0.5, – Commercial
[21] = 1.0, – Trains

1 Like

Yeah i did that bro, but still, thx for your help