Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 459 Bytes

File metadata and controls

18 lines (12 loc) · 459 Bytes

ox_fuel

Basic fuel resource and alternative to LegacyFuel, meant for use with ox_inventory.

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.

Entity(entity).state.fuel

Set vehicle fuel level

Entity(entity).state.fuel = fuelAmount