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

Function

getVehicleModelWheelSize

Server and clientVehiclesIdentical to MTA:SA

Returns a model's wheel diameter set with setVehicleModelWheelSize. On the client without a group name it returns a { front_axle, rear_axle } table.

Syntax

float/table getVehicleModelWheelSize(int model [, string wheelGroup = nil])

Arguments

modelint
Vehicle model ID.
wheelGroupstring, optional = nil
"front_axle", "rear_axle" or "all_wheels".

Returns

Diameter in metres, a table of both axles, or false when not set.

Example

setVehicleModelWheelSize(411, "all_wheels", 0.75)
outputDebugString(tostring(getVehicleModelWheelSize(411, "front_axle")))

See also