setTyreMaximumGripDifferenceDueToWearRate
SET_TYRE_MAXIMUM_GRIP_DIFFERENCE_DUE_TO_WEAR_RATE0xC970D0E0FC31D768The GTA V native SET_TYRE_MAXIMUM_GRIP_DIFFERENCE_DUE_TO_WEAR_RATE of the VEHICLE namespace, as LS:MP client scripts call it: the global function setTyreMaximumGripDifferenceDueToWearRate, in JavaScript and in Lua.
setTyreMaximumGripDifferenceDueToWearRate(
vehicle: Vehicle,
wheelIndex: number,
multiplier: number
): voidsetTyreMaximumGripDifferenceDueToWearRate(
vehicle: Vehicle,
wheelIndex: integer,
multiplier: number
)Usage
setTyreMaximumGripDifferenceDueToWearRate(vehicle, wheelIndex, multiplier);setTyreMaximumGripDifferenceDueToWearRate(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.
Controls how much traction the wheel loses.
Default values from Rockstar's Open Wheel Race JSON's:
"owrtds" (Soft): 0.05
"owrtdm" (Medium): 0.45
"owrtdh" (Hard): 0.8
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_MAXIMUM_GRIP_DIFFERENCE_DUE_TO_WEAR_RATE(Vehicle vehicle, int wheelIndex, float multiplier)- Hash
0xC970D0E0FC31D768- Introduced
- Game build 2060 legacy numbering
- Formerly
_SET_TYRE_TRACTION_LOSS_MULTIPLIER