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

Function

getVehicleNameFromModel

Server and clientVehiclesIdentical to MTA:SA

Returns a vehicle name for a model number, e.g. 411 → "Infernus", without creating a vehicle. For a number outside 400-611 that is not a new vehicle it returns false.

Syntax

string getVehicleNameFromModel(int model)

Arguments

modelint
Vehicle model ID.

Returns

The name, or false.

Example

for model = 400, 405 do
    outputDebugString(model .. " = " .. getVehicleNameFromModel(model))
end

See also