GetVehicleType

From Multi Theft Auto: Wiki
Revision as of 20:51, 14 April 2008 by EAi (talk | contribs)
Jump to navigation Jump to search

This function retrieves the type of a vehicle (such as if it is a car or a boat).

Syntax

string getVehicleType ( vehicle theVehicle )

OR

string getVehicleType ( int modelId )

Required Arguments

  • vehicle: The vehicle element to get the type of.
  • modelId: A vehicle model 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