getTyreWearRate
GET_TYRE_WEAR_RATE0x6E387895952F4F71The GTA V native GET_TYRE_WEAR_RATE of the VEHICLE namespace, as LS:MP client scripts call it: the global function getTyreWearRate, in JavaScript and in Lua.
getTyreWearRate(vehicle: Vehicle, wheelIndex: number): numbergetTyreWearRate(vehicle: Vehicle, wheelIndex: integer): numberUsage
JavaScript
const value = getTyreWearRate(vehicle, wheelIndex);Lua
local value = getTyreWearRate(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.
Returns the multiplier value from setTyreWearRate
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_WEAR_RATE(Vehicle vehicle, int wheelIndex)- Hash
0x6E387895952F4F71- Introduced
- Game build 2060 legacy numbering
- Formerly
_GET_TYRE_WEAR_MULTIPLIER