VehicleClientChecked by LS:MP

setTyreWearRate

SET_TYRE_WEAR_RATE0x01894E2EDE923CA2

The GTA V native SET_TYRE_WEAR_RATE of the VEHICLE namespace, as LS:MP client scripts call it: the global function setTyreWearRate, in JavaScript and in Lua.

SignatureJavaScript
setTyreWearRate(
  vehicle: Vehicle,
  wheelIndex: number,
  multiplier: number
): void
SignatureLua
setTyreWearRate(vehicle: Vehicle, wheelIndex: integer, multiplier: number)

Usage

JavaScript
setTyreWearRate(vehicle, wheelIndex, multiplier);
Lua
setTyreWearRate(vehicle, wheelIndex, multiplier)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
wheelIndexintnumberinteger
multiplierfloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

On LS:MP

ℹ
Checked by LS:MP

wheelIndex must be between 0 and 7; multiplier must be a finite number. Otherwise the call is ignored: 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.

Needs to be run for tire wear to work. Multiplier affects the downforce and how fast the tires will wear out, higher values essentially make the vehicle slower on straights and its tires will wear down quicker when cornering. Value must be >0f.
Default value in Rockstar's Open Wheel Race JSON's ("owrtws", "owrtwm", "owrtwh") is 1.0

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
void SET_TYRE_WEAR_RATE(Vehicle vehicle, int wheelIndex, float multiplier)
Hash
0x01894E2EDE923CA2
Introduced
Game build 1868 legacy numbering
Formerly
_SET_TYRE_WEAR_MULTIPLIER

Open in the interactive natives reference