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

Function

getElementAttachedOffsets

Server and clientElementsIdentical to MTA:SA

Returns the attached element's offset and rotation relative to the one it is attached to.

Syntax

float getElementAttachedOffsets(element theElement)

Arguments

theElementelement
The attached element.

Returns

x, y, z, rx, ry, rz.

Example

local x, y, z = getElementAttachedOffsets(light)
setElementAttachedOffsets(light, x, y, z + 0.1)

See also