setVehicleTyreFixed
SET_VEHICLE_TYRE_FIXED0x6E13FC662B882D1DThe GTA V native SET_VEHICLE_TYRE_FIXED of the VEHICLE namespace, as LS:MP client scripts call it: the global function setVehicleTyreFixed, in JavaScript and in Lua.
setVehicleTyreFixed(vehicle: Vehicle, tyreIndex: number): voidsetVehicleTyreFixed(vehicle: Vehicle, tyreIndex: integer)Usage
setVehicleTyreFixed(vehicle, tyreIndex);setVehicleTyreFixed(vehicle, tyreIndex)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
tyreIndex | int | number | integer |
Returns
Nothing. In JavaScript the call evaluates to undefined.
On LS:MP
tyreIndex must be between 0 and 7. 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.
tyreIndex = 0 to 4 on normal vehicles
'0 = wheel_lf / bike, plane or jet front
'1 = wheel_rf
'2 = wheel_lm / in 6 wheels trailer, plane or jet is first one on left
'3 = wheel_rm / in 6 wheels trailer, plane or jet is first one on right
'4 = wheel_lr / bike rear / in 6 wheels trailer, plane or jet is last one on left
'5 = wheel_rr / in 6 wheels trailer, plane or jet is last one on right
'45 = 6 wheels trailer mid wheel left
'47 = 6 wheels trailer mid wheel right
Reference
- Namespace
- Vehicle VEHICLE
- In the game
void SET_VEHICLE_TYRE_FIXED(Vehicle vehicle, int tyreIndex)- Hash
0x6E13FC662B882D1D