GetVehicleModelFromName

From Multi Theft Auto: Wiki
Revision as of 22:42, 18 December 2014 by Strix (talk | contribs) (Does we really need this method?)
Jump to navigation Jump to search

This function retrieves the model ID of a vehicle as an integer value from its name.

Syntax

int getVehicleModelFromName ( string name )             

OOP Syntax Help! I don't understand this!

Method: vehicle:getModelFromName(...)


Required Arguments

  • name: A string containing the name of the vehicle.

Returns

Returns an integer if the name exists, false otherwise. If you use this function on vehicles with shared names, such as "police", it will return the earliest occurrence of that vehicle's ID.

Example

Click to expand [+]
Server

See Also

Shared