GetResourceDynamicElementRoot

From Multi Theft Auto: Wiki
Revision as of 16:59, 27 February 2010 by Sebassje (talk | contribs)
Jump to navigation Jump to search

This function retrieves the dynamic element root of a specified resource. The dynamic element root is the parent of elements that are created by scripts (e.g. with createObject) unless they specify a different parent.

Syntax

element getResourceDynamicElementRoot ( resource theResource ) 

Required Arguments

  • theResource: the resource of which dynamic element root we want.

Returns

Returns an element of the resource's dynamic element root if the resource specified was valid and active (currently running), false otherwise.

Example

--TODO

See Also