Element/Vehicle: 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__
A class representing a controllable vehicle in the GTA world.
A class representing a controllable vehicle in the GTA world.



Revision as of 01:49, 9 December 2006

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