Element/Vehicle

From Multi Theft Auto: Wiki
Revision as of 01:47, 9 December 2006 by Erorr404 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


A class representing a controllable vehicle in the GTA world.

The element type of this class is "vehicle".

XML syntax

<vehicle id="" model="" posX="" posY="" posZ="" rotX="" rotY="" rotZ="" colors="" upgrades="" paintjob=""/>

Required Attributes

  • model: The vehicle ID of the vehicle being created.
  • posX: A floating point number representing the X position of the vehicle.
  • posY: A floating point number representing the Y position of the vehicle.
  • posZ: A floating point number representing the Z position of the vehicle.

Optional Attributes

  • posX: A floating point number representing the X rotation of the vehicle.
  • posY: A floating point number representing the Y rotation of the vehicle.
  • posZ: A floating point number representing the Z rotation of the vehicle.
  • colors: The vehicle's color(s) seperated by a comma if there are more than one

Scripting functions