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

Function

getElementBoneAttachment

Server and clientElementsTrilogy Hub only

Returns the data of an element attached to a ped's bone.

Syntax

mixed getElementBoneAttachment(element theElement)

Arguments

theElementelement
The element.

Returns

ped, bone, x, y, z, rx, ry, rz, follow, or false. follow tells whether the element follows the bone (see attachElementToBone).

Example

local ped, bone = getElementBoneAttachment(hat)
if ped then
    outputServerLog("Czapka na kości " .. bone)
end

See also