GetVehicleType: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
__NOTOC__  
__NOTOC__  
{{Server client function}}
{{Server client function}}
{{New feature|3|DP3|
This function retrieves the vehicle type
This function retrieves the vehicle type
 
}}
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">

Revision as of 20:48, 14 April 2008

This function retrieves the vehicle type

Syntax

string getVehicleType ( vehicle theVehicle )
string getVehicleType ( integer modelId )

Required Arguments

  • vehicle: The vehicle element or id.

Returns

Returns a string with vehicle type or false if an invalid modelID has been supplied, or an empty string if the vehicle is blocked internally (some trailers). Works server- and clientside.

types: Automobile
Plane
Bike
Helicopter
Boat
Train
Trailer
BMX
Monster Truck
Quad

Example


See Also