Vehicle wheels
Setting wheels
Vehicle wheels should be set using the SetWheels(wheelType, wheelId) method provided by alt:V.
This method is available to the respective vehicle instance.
Tip
For cars the SetWheels(wheelType, wheelId) method is sufficient to change all 4 wheels. For motorcycles additionally
the SetRearWheels(wheelId) method is available.
Tip
See Pleb Masters: Forge for a full list of vehicle wheels.
Wheel types
| Id | Description |
|---|---|
| 0 | Sport |
| 1 | Muscle |
| 2 | Lowrider |
| 3 | SUV |
| 4 | Offroad |
| 5 | Tuner |
| 6 | Bike Wheels |
| 7 | High End |
Customizing wheels
Methods
Warning
Not all of the features have a visual effect and may have needed a combination to adjust the physics of the vehicle. Changes to the values should always be done in small steps.
| Modifier | Setter | Getter |
|---|---|---|
| Camber | SetWheelCamber(wheelIndex, camber) |
GetWheelCamber(wheelIndex) |
| Height | SetWheelHeight(wheelIndex, height) |
GetWheelHeight(wheelIndex) |
| Rim Radius | SetWheelRimRadius(wheelIndex, radius) |
GetWheelRimRadius(wheelIndex) |
| Track Width | SetTrackWidth(wheelIndex, width) |
GetTrackWidth(wheelIndex) |
| Tyre Radius | SetTyreRadius(wheelIndex, radius) |
GetTyreRadius(wheelIndex) |
| Tyre Width | SetTyreWidth(wheelIndex, width) |
GetTyreWidth(wheelIndex) |
Sample
The example modifies a Sultan RS camber and track width: