Skip to content

Simplistic fuel resource meant for use with ox_inventory

License

Notifications You must be signed in to change notification settings

Senlar/ox_fuel

 
 

Repository files navigation

ox_fuel

Get vehicle fuel level

This is an incredibly complicated task for some people, and they often ask for exports to do it.
You use the native function GetVehicleFuelLevel, or you can use a statebag.

local fuel = GetVehicleFuelLevel(entity)
-- or Entity(entity).state.fuel

Set vehicle fuel level

Entity(entity).state.fuel = fuelAmount

About

Simplistic fuel resource meant for use with ox_inventory

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%