- Documentation
- Server functions
- getElementParent
Function
getElementParent
Returns the element's parent in the element tree.
Syntax
element getElementParent(element theElement)Arguments
theElementelement- The element.
Returns
The parent or false.
Example
if getElementParent(vehicle) == resourceRoot then
outputServerLog("Auto stworzył ten zasób")
end