SetElementData

From Multi Theft Auto: Wiki
Revision as of 15:09, 30 August 2007 by Jbeta (talk | contribs)
Jump to navigation Jump to search

This function stores element data under a certain key, attached to an element.

Syntax

bool setElementData ( element theElement, string key, var value ) 

Required Arguments

  • theElement: The element you wish to attach the data to.
  • key: The key you wish to store the data under.
  • value: The value you wish to store. See element data for a list of acceptable datatypes.

Returns

Returns true if the data was set succesfully, false otherwise.

Example

Click to expand [+]
Server

See Also