M MY Multiplayer: Wiki
Side
Kind

isElementAttached

Shared

Tells whether an element is attached to another.

bool isElementAttached(element element)

Parameters

NameTypeDescription
elementelementThe element to check.

Returns

true if it is attached to an element that exists, false otherwise.

Example

addCommandHandler("soltar", function(player)
    if isElementAttached(player) then
        detachElements(player)
    end
end)

See also