Skip to content

object

Element category: Entity

The object class represents dynamic and static 3D models placed in the GTA world.

  • Objects only represent models created by a script, they do not represent objects that are part of GTA's default landscape (these belong to the "building pool").
  • There is a distinction in GTA: San Andreas between static and dynamic models. The alternative createBuilding function allows you to create objects that are non-dynamic, utilizing the GTA Building pool, which makes better use of memory.
  • The createObject function can also create non-dynamic objects, but for optimization reasons it is recommended to spawn Buildings when creating static objects that don't rely on the Dimension system (buildings don't use the same MTA object-streaming system).

OOP Constructor

Object(...) is the constructor method for the object class (createObject).

OOP Methods and Variables

See Also

Element Functions
Reference