ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getElementParent

Function

getElementParent

ServerElementsIdentical to MTA:SA

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

See also