ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. setVehicleModelWheelSize

Function

setVehicleModelWheelSize

Server and clientVehiclesIdentical to MTA:SA

Changes the wheel diameter of a vehicle model. On the client it changes the wheels of vehicles with a custom model (engineReplaceModel) for this player; game cars' wheels stay as they are. On the server it only stores the value for scripts.

Syntax

bool setVehicleModelWheelSize(int model, string wheelGroup, float size)

Arguments

modelint
Vehicle model ID.
wheelGroupstring
"front_axle", "rear_axle" or "all_wheels".
sizefloat
Wheel diameter in metres (as in vehicles.ide, e.g. 0.7).

Returns

true on success.

Example

setVehicleModelWheelSize(411, "rear_axle", 0.8)

See also