- Documentation
- Shared functions
- getElementAttachedTo
Function
getElementAttachedTo
Returns the element this one is attached to.
Syntax
element getElementAttachedTo(element theElement)Arguments
theElementelement- The element.
Returns
The element or false.
Example
local car = getElementAttachedTo(light)
if car then
outputServerLog("Kogut wisi na " .. getVehicleName(car))
end