Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 421 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 421 Bytes

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