setTyreWearRate
SET_TYRE_WEAR_RATE0x01894E2EDE923CA2The 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.
setTyreWearRate(
vehicle: Vehicle,
wheelIndex: number,
multiplier: number
): voidsetTyreWearRate(vehicle: Vehicle, wheelIndex: integer, multiplier: number)Usage
setTyreWearRate(vehicle, wheelIndex, multiplier);setTyreWearRate(vehicle, wheelIndex, multiplier)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
wheelIndex | int | number | integer |
multiplier | float | number | number |
Returns
Nothing. In JavaScript the call evaluates to undefined.
On 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