GetResourceGUIElement

From Multi Theft Auto: Wiki
Revision as of 15:19, 9 August 2009 by EAi (talk | contribs)
Jump to navigation Jump to search

This function retrieves a resource's GUI element. The resource's GUI element is the element in the element tree which is the default parent of all GUI elements that belong to a particular resource. This has the tag 'guiroot', and each resource has one of these.

Syntax

element getResourceGUIElement ( [resource theResource=getThisResource()] )

Optional Arguments

NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use. For more information on optional arguments, see optional arguments.

  • theResource: the resource whose GUI element we are getting. If not specified, assumes the current resource. (the resource returned from getThisResource)

Returns

Returns the root GUI element that contains all the other GUI elements.

Example

Click to collapse [-]
Client
-- Add example

See Also