Hello everyone! guys there is a problem fuel ends very quickly how to fix it so that it lasts for a long time.
Change in config.lua :
Config.Classes = {
[0] = 0.5, -- Compacts
[1] = 0.5, -- Sedans
[2] = 0.7, -- SUVs
[3] = 0.5, -- Coupes
[4] = 0.7, -- Muscle
[5] = 0.7, -- Sports Classics
[6] = 0.7, -- Sports
[7] = 0.7, -- Super
[8] = 0.4, -- Motorcycles
[9] = 0.6, -- Off-road
[10] = 0.5, -- Industrial
[11] = 0.5, -- Utility
[12] = 0.5, -- Vans
[13] = 0.0, -- Cycles
[14] = 0.0, -- Boats
[15] = 0.0, -- Helicopters
[16] = 0.0, -- Planes
[17] = 0.5, -- Service
[18] = 0.3, -- Emergency
[19] = 0.5, -- Military
[20] = 0.5, -- Commercial
[21] = 1.0, -- Trains
}
Config.FuelUsage = {
[1.0] = 1.2,
[0.9] = 1.0,
[0.8] = 0.9,
[0.7] = 0.8,
[0.6] = 0.6,
[0.5] = 0.5,
[0.4] = 0.4,
[0.3] = 0.3,
[0.2] = 0.1,
[0.1] = 0.1,
[0.0] = 0.0,
}
Thanks for answering! could you explain a couple of points to me.
what are these settings responsible for?
[0] = 0.5, – Compacts
[1] = 0.5, – Sedans
[2] = 0.7, – SUVs
[3] = 0.5, – Coupes
[4] = 0.7, – Muscle
[5] = 0.7, – Sports Classics
[6] = 0.7, – Sports
[7] = 0.7, – Super
[8] = 0.4, – Motorcycles
[9] = 0.6, – Off-road
[10] = 0.5, – Industrial
[11] = 0.5, – Utility
[12] = 0.5, – Vans
[13] = 0.0, – Cycles
[14] = 0.0, – Boats
[15] = 0.0, – Helicopters
[16] = 0.0, – Planes
[17] = 0.5, – Service
[18] = 0.3, – Emergency
[19] = 0.5, – Military
[20] = 0.5, – Commercial
[21] = 1.0, – Trains
what are these settings responsible for?
[1.0] = 1.2,
[0.9] = 1.0,
[0.8] = 0.9,
[0.7] = 0.8,
[0.6] = 0.6,
[0.5] = 0.5,
[0.4] = 0.4,
[0.3] = 0.3,
[0.2] = 0.1,
[0.1] = 0.1,
[0.0] = 0.0,
I will be very grateful
First is something like global consumming per category of vehicles between 0.0 (no consumption for boats, bicycles and planes) and 1.0
Second is something like a ratio depends how you push the throttle and the RPM of the vehicle, for what I remember.
So with those settings, you can drive the grand tour of the island with 3/4 of the fuel tank
You can try something like this, client side :
Citizen.CreateThread(function()
local petrolcan = weapon_petrolcan
local HasGotPetrolCanBefore = false
while true do
Citizen.Wait(0)
local playerPed = PlayerPedId()
if HasPedGotWeapon(playerPed, petrolcan, false) and GetAmmoInPedWeapon(playerPed, petrolcan) > 0 then
HasGotPetrolCanBefore = true
Citizen.Wait(1000)
else
if HasGotPetrolCanBefore then
Citizen.Wait(10)
TriggerEvent(‘esx:removeInventoryItem’, ‘petrolcan’, 1)
HasGotPetrolCanBefore = false
end
Citizen.Wait(5000)
end
end
end)
Hello I was wondering if this worked with Andy’s money script? If it doesn’t, is it possible to make it work with it?
Andy’s money script:
I can fork this on GitHub and make it work
That would be really great if you could
Here it is:
Any idea why i cant refuel ? Its says not enaugh money even since iv got like 100k on me. Also is version 1.1 on git hub the newest one?
Yeh anyone know how to fix that? It would be cool if car would just turn off its engine when out of fuel.
yeh anyone have v1.3 guys?
It’s the native ‘SetVehicleFuelLevel’ when fuel is below 6. So what I did is write if fuel <= 6 then set fuel to 0. It then kills the engine when fuel level hits 6.
Is there a way to set either all vehicles or at least emergency vehicles to 100% fuel when they first spawn in? TIA
Umm all my planes don’t work now how do i fix
how can i remove the mph and kmh and only have the fuel piece?
i m using esx_advancedgarage
how can i save fuel level in my garage
every time i take out my car
the fuel level is Random
Hi
i need help with
Legacy Fuel I don’t want to get a tank canister as a weapon, but as an item. How can I do that
Hello, I have a issue here, my money is not going down after I pump gas
Is it possible to make some cars not be able to use the gas stations?
Im thinking of making electric cars have to use Tesla stations to make the server more realistic.
If this is possible how should I do it?