SetVehicleWheelXOffset — RedM Natives
0xBD6357D · CFX · client
Adjusts the offset of the specified wheel relative to the wheel's axle center. Needs to be called every frame in order to function properly, as GTA will reset the offset otherwise. This function can be especially useful to set the track width of a vehicle, for example: `` function SetVehicleFrontTrackWidth(vehicle, width) SetVehicleWheelXOffset(vehicle, 0, -width/2) SetVehicleWheelXOffset(vehicle, 1, width/2) end ``
Parameters
| Name | Type |
|---|---|
| vehicle | Vehicle |
| wheelIndex | int |
| offset | float |
Returns
void