SetElementID: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
[[Category:Incomplete]]
[[Category:Incomplete]]
__NOTOC__  
__NOTOC__  
This fake function is for use with blah & blah and does blahblahblabhalbhl
This function sets the ''ID'' of an ''element'' to a ''string''. This can be anything from an identifying number, to a name.


==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool setElementID ( element element, string name )  
bool setElementID ( element theElement, string name )  
</syntaxhighlight>  
</syntaxhighlight>  


===Required Arguments===  
===Required Arguments===  
*'''argumentName:''' description
*'''theElement:''' The ''element'' you want to set the ID of.
 
*'''name:'' The ID you want to set to ''theElement''
===Optional Arguments===
{{OptionalArg}}
*'''argumentName2:''' descriptiona
*'''argumentName3:''' description


===Returns===
===Returns===
Returns ''true'' if blah, ''false'' otherwise.
This returns ''true'' if sucessful. It will return false if ''theElement'' is invalid, or does not exist, or if ''name'' is invalid, or is not a string.


==Example==  
==Example==  
This example does...
 
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
--This line does...
Example goes here...
blabhalbalhb --abababa
--This line does this...
mooo
</syntaxhighlight>
</syntaxhighlight>


==See Also==
==See Also==
{{FunctionArea_Functions}}
{{element_functions}}

Revision as of 17:06, 22 August 2006


This function sets the ID of an element to a string. This can be anything from an identifying number, to a name.

Syntax

bool setElementID ( element theElement, string name ) 

Required Arguments

  • theElement: The element you want to set the ID of.
  • 'name: The ID you want to set to theElement

Returns

This returns true if sucessful. It will return false if theElement is invalid, or does not exist, or if name is invalid, or is not a string.

Example

Example goes here...

See Also