GetElementByID: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 6: Line 6:
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
element getElementByID ( string name, int id )   
element getElementByID ( string id )   
</syntaxhighlight>  
</syntaxhighlight>  


===Required Arguments===  
===Required Arguments===  
*'''argumentName:''' description
*'''id:''' The ID of the element as it appears in the xml file.
 
===Optional Arguments===
{{OptionalArg}}
*'''argumentName2:''' descriptiona
*'''argumentName3:''' description


===Returns===
===Returns===
Returns ''true'' if blah, ''false'' otherwise.
Returns the element with the given ID, or ''false'' if no such element exists.


==Example==  
==Example==  

Revision as of 08:04, 26 May 2006


This fake function is for use with blah & blah and does blahblahblabhalbhl

Syntax

element getElementByID ( string id )  

Required Arguments

  • id: The ID of the element as it appears in the xml file.

Returns

Returns the element with the given ID, or false if no such element exists.

Example

This example does...

--This line does...
blabhalbalhb --abababa
--This line does this...
mooo

See Also

Template:FunctionArea Functions