getElementID | Multi Theft Auto: Wiki Skip to content

getElementID

Client-side
Server-side
Shared

Pair: setElementID

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function gets the ID of an element. This is the "id" attribute of the element and is a string, NOT a number like a model ID, weapons ID or similar.

Note

This function can also be used to get the resource name of any resource-data .

Syntax

getElementID ( )

Code Examples

server

To get the ID of the following element:

<flag id="northflag" posX="2365" posY="215" posZ="32" />

See Also

Element Functions