// Config.UseLegacyFuel = false --Enable this if you use legacy fuel
Config.GetVehicleFuel = function(vehicle) -- you can change LegacyFuel export if you use another fuel system
if Config.UseLegacyFuel then
return exports["LegacyFuel"]:GetFuel(vehicle)
else
return GetVehicleFuelLevel(vehicle)
end
end
Edit this lines according to your fuel system.
Config File
Information
Information - 1
If you have changed keys such as belt, cruise control via config and the old ones are still active when you enter the game, change the name of the script.
Informaton - 2
If you think stress isn't working, make sure your profession isn't a cop or a doctor.
Known Problems
HUD Shown Problem - FIX
If you are using qb-core and hud is not loading even though there are no errors, check your spawn script and search for it in "client.lua" file.
// TriggerServerEvent('QBCore:Server:OnPlayerLoaded')
or
TriggerServerEvent("QBCore:Server:OnPlayerLoaded")
If you cannot see the above event in your spawn script