SetElementID: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Available client-side in 1.1)
No edit summary
Line 4: Line 4:


{{New feature|3.0110|1.1|
{{New feature|3.0110|1.1|
Available client-side. Only available server-side for 1.0.4 and lower.
Available client-side. Only available server-side for 1.0.x.
}}
}}



Revision as of 22:03, 6 May 2011

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

Available client-side. Only available server-side for 1.0.x.


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