GetVehicleType

From Multi Theft Auto: Wiki
Revision as of 20:46, 14 April 2008 by Lil Toady (talk | contribs) (New page: __NOTOC__ {{Server client function}} This function retrieves the vehicle type ==Syntax== <syntaxhighlight lang="lua"> string getVehicleType (vehicle theVehicle) string getVehicleType (integer modelId)...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

Automobile
Plane
Bike
Helicopter
Boat
Train
Trailer
BMX
Monster Truck
Quad

Example


See Also