Element/Object

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

The object class represents a static, 3-D model in the GTA world. Objects can only represent models created by the server, they cannot represent models that are part of the GTA's default landscape. Examples of objects include building models, roads, and terrain.

The element type of this class is "object".

XML syntax

<object id="" model="" posX="" posY="" posZ="" rotX="" rotY="" rotZ=""/>

Required Attributes

  • model: The object ID of the object being created. Since GTA has thousands of objects, these are hard to document on the wiki. Instead, they can be found using the object browser in the map editor.
  • posX: A float representing the X position of the object.
  • posY: A float representing the Y position of the object.
  • posZ: A float representing the Z position of the object.

Optional Attributes

  • rotX: A float representing the X rotation of the object.
  • rotY: A float representing the Y rotation of the object.
  • rotZ: A float representing the Z rotation of the object.

Related scripting functions