SetElementID: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
__NOTOC__  
__NOTOC__  
This function sets the ID of an element to a string. This can be anything from an identifying number, to a name.
This function sets the ID of an element to a string. This can be anything from an identifying number, to a name.
Only available server-side for 1.0.x.


==Syntax==  
==Syntax==  

Revision as of 16:17, 24 May 2012

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 new ID for theElement.

Returns

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

Example

-- Add example..

See Also