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

Function

engineGetModelNameFromID

Returns a model name by number: of a new named model or of a vehicle.

Syntax

string engineGetModelNameFromID(int modelID)

Arguments

modelIDint
Model number.

Differences from MTA:SA

  • In MTA:SA this function is client-side only.

In MTA:SA

engineGetModelNameFromID(int modelID)

Returns

The name or false.

Example

outputServerLog(tostring(engineGetModelNameFromID(411)))

See also