Skip to content

Simplistic fuel resource meant for use with ox_inventory

License

Notifications You must be signed in to change notification settings

H0ssein/ox_fuel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Packages

No packages published

Languages

  • Lua 100.0%