SetElementParent: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 15: Line 15:


===Returns===
===Returns===
Returns ''true'' if both [[elements]] are valid, ''false'' otherwise.
Returns ''true'' if both [[element]]s are valid, ''false'' otherwise.


==Example==  
==Example==  

Revision as of 17:36, 9 December 2007

This function is used for setting an element as the parent of another element.

Important note: The client-side version of this function can only be used on client-created elements. It cannot be used to modify the parent of server side elements.

Syntax

bool setElementParent ( element theElement, element parent )  

Required Arguments

  • theElement: The element that you wish to set the parent of.
  • parent: The element you wish to be the parent of theElement.

Returns

Returns true if both elements are valid, false otherwise.

Example

Click to expand [+]
Server

See Also