M MY Multiplayer: Wiki
Lado
Tipo

isElementAttached

Compartilhado

Diz se um elemento está anexado a outro.

bool isElementAttached(element element)

Parâmetros

NomeTipoDescrição
elementelementO elemento a consultar.

Retorno

true se está anexado a um elemento que existe, false caso contrário.

Exemplo

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

Veja também