setTyreWearRateScale
SET_TYRE_WEAR_RATE_SCALE0x392183BB9EA57697The GTA V native SET_TYRE_WEAR_RATE_SCALE of the VEHICLE namespace, as LS:MP client scripts call it: the global function setTyreWearRateScale, in JavaScript and in Lua.
setTyreWearRateScale(
vehicle: Vehicle,
wheelIndex: number,
multiplier: number
): voidsetTyreWearRateScale(
vehicle: Vehicle,
wheelIndex: integer,
multiplier: number
)⚠
Not in this game build
The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.
Usage
JavaScript
setTyreWearRateScale(vehicle, wheelIndex, multiplier);Lua
setTyreWearRateScale(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.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Controls how fast the tires wear out.
Default values from Rockstar's Open Wheel Race JSON's:
"owrtss" (Soft): 2.2
"owrtsm" (Medium): 1.7
"owrtsh" (Hard): 1.2
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_SCALE(Vehicle vehicle, int wheelIndex, float multiplier)- Hash
0x392183BB9EA57697- Introduced
- Game build 2060 legacy numbering
- Formerly
_SET_TYRE_SOFTNESS_MULTIPLIER