Hud/Garage integration

HUDs

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)

Garages

Garage systems often require two exports: SetFuel and GetFuel.

You can use the following exports for both cases:

Getter:

  • exports["rcore_fuel"]:GetFuel(vehicleEntity)

Setter:

  • exports["rcore_fuel"]:SetFuel(vehicleEntity, level)

Last updated