Skip to content

Element

Client-side
Server-side
Shared

In order to perform operations on MTA objects via scripting, pointers to internal classes are exported to scripts as Lua userdata. Each of these classes has a number of exported scripting functions associated with them. Elements that have a physical representation in the game are also known as Entities. An element is a generic class that can represent almost all in-game entities. The built-in element types are:

ACL elements
Account elements
Ban elements
Audio elements
Browser elements
Engine elements
File elements
Drawing elements
DB elements
Matrix elements
Discord elements
Server elements
Resource elements
Text elements
Team elements
Vector elements
Timer elements
Root elements
XML elements

OOP Methods and Variables

See Also