GetTireStatus - Export

The GetTireStatus export returns a table containing the current wear percentage of all four tires on the client-side vehicle.

Each tire is represented by a key (fl, fr, rl, rr), with a nested health value ranging from 0.0 (completely worn) to 100.0 (brand new). This function is useful when you want to display tire condition in a HUD, trigger warnings, or use the values for handling logic.

Return format:

{
    fl = { health = 100.0 }, -- Front Left
    fr = { health = 100.0 }, -- Front Right
    rl = { health = 100.0 }, -- Rear Left
    rr = { health = 100.0 }  -- Rear Right
}

Example:

local tireStatus = exports['bnc_carp']:GetTireStatus()
print("Rear right tire condition: " .. tireStatus.rr.health)

Notes:

  • This export operates only on the locally tracked vehicle (the one currently handled by the player).

  • Future updates may expand the returned data structure to include additional tire-related values such as type, pressure, or damage.

Last updated

Was this helpful?