getTyreHealth
GET_TYRE_HEALTH0x55EAB010FAEE9380The GTA V native GET_TYRE_HEALTH of the VEHICLE namespace, as LS:MP client scripts call it: the global function getTyreHealth, in JavaScript and in Lua.
getTyreHealth(vehicle: Vehicle, wheelIndex: number): numbergetTyreHealth(vehicle: Vehicle, wheelIndex: integer): numberUsage
JavaScript
const value = getTyreHealth(vehicle, wheelIndex);Lua
local value = getTyreHealth(vehicle, wheelIndex)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
wheelIndex | int | number | integer |
Returns
float JavaScript number, Lua numberOn LS:MP
ℹ
Checked by LS:MP
wheelIndex must be between 0 and 7. Otherwise the call is ignored and returns 0.0: nothing reaches the game, and no error is raised.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Usable wheels:
0: wheel_lf
1: wheel_rf
2: wheel_lm1
3: wheel_rm1
4: wheel_lr
5: wheel_rr
Reference
- Namespace
- Vehicle VEHICLE
- In the game
float GET_TYRE_HEALTH(Vehicle vehicle, int wheelIndex)- Hash
0x55EAB010FAEE9380- Introduced
- Game build 1868 legacy numbering
- Formerly
_GET_TYRE_HEALTH