isElementAttached
Shared
Tells whether an element is attached to another.
bool isElementAttached(element element)
Parameters
| Name | Type | Description |
|---|---|---|
| element | element | The 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)