Most HUD systems require an export to get the fuel level of the current vehicle.
You can use the following export to get the fuel level:
exports["rcore_fuel"]:GetFuel(vehicleEntity)
Garage systems often require two exports: SetFuel and GetFuel.
You can use the following exports for both cases:
Getter:
Setter:
exports["rcore_fuel"]:SetFuel(vehicleEntity, level)
Last updated 1 year ago