- Documentation
- Server functions
- getResourceDynamicElementRoot
Function
getResourceDynamicElementRoot
Returns the root of the elements a resource creates while running. In Trilogy Hub it is the same element as getResourceRootElement.
Syntax
element getResourceDynamicElementRoot(resource theResource)Arguments
theResourceresource- The resource.
Returns
The root or false.
Example
local root = getResourceDynamicElementRoot(getThisResource())
outputServerLog(#getElementChildren(root) .. " elementów")