ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. getElementAttachedTo

Function

getElementAttachedTo

Server and clientElementsIdentical to MTA:SA

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