getElementChild | Multi Theft Auto: Wiki Skip to content

getElementChild

Client-side
Server-side
Shared

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 returns one of the child elements of a given parent element. The child element is selected by its index (0 for the first child, 1 for the second and so on).

Syntax

getElementChild ( )

Code Examples

server

If the .map file contains:

<team1 id="red">
<base name="Mountain Top" />
<base name="Docks" />
<base name="Airport" />
</team1>

See Also

Element Functions