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

Function

getVehicleTypeFromModel

Server and clientVehiclesTrilogy Hub only

Returns the vehicle kind for a model number (like getVehicleType). A new model from engineRequestModel has its base model's type.

Syntax

string getVehicleTypeFromModel(int model)

Arguments

modelint
Vehicle model ID.

Returns

The type, or false.

Example

outputDebugString(getVehicleTypeFromModel(520))

See also