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

Function

isElementAttachedToBone

Server and clientElementsTrilogy Hub only

Checks whether an element is attached to a ped's bone.

Syntax

bool isElementAttachedToBone(element theElement)

Arguments

theElementelement
The element.

Returns

true if attached to a bone.

Example

if isElementAttachedToBone(hat) then
    detachElementFromBone(hat)
end

See also