SetElementID: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 10: Line 10:
===Required Arguments===  
===Required Arguments===  
*'''theElement:''' The ''element'' you want to set the ID of.
*'''theElement:''' The ''element'' you want to set the ID of.
*'''name:'' The ID you want to set to ''theElement''
*'''name:''' The ID you want to set to ''theElement''


===Returns===
===Returns===

Revision as of 17:08, 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