GetResourceDynamicElementRoot: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
__NOTOC__  
__NOTOC__  
{{Server function}}
{{Server function}}
This function retrieves the dynamic element root of a specified [[resource]].
This function retrieves the dynamic element root of a specified [[resource]]. The dynamic root element is the parent of elements that are created by scripts (e.g. with [[createObject]]) unless they specify a different parent.
<!-- Needs a proper explanation of what the dynamic element root actually is and what it's used for. -->
 
[[Category:Incomplete]] <!-- Do not remove unless you finish the documentation. -->
[[Category:Incomplete]] <!-- Do not remove unless you finish the documentation. -->



Revision as of 11:14, 7 October 2009

This function retrieves the dynamic element root of a specified resource. The dynamic root element 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