VehicleClientChecked by LS:MP

getTyreWearRate

GET_TYRE_WEAR_RATE0x6E387895952F4F71

The 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.

SignatureJavaScript
getTyreWearRate(vehicle: Vehicle, wheelIndex: number): number
SignatureLua
getTyreWearRate(vehicle: Vehicle, wheelIndex: integer): number

Usage

JavaScript
const value = getTyreWearRate(vehicle, wheelIndex);
Lua
local value = getTyreWearRate(vehicle, wheelIndex)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
wheelIndexintnumberinteger

Returns

float JavaScript number, Lua number

On 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

Open in the interactive natives reference