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

Function

detachElements

Server and clientElementsIdentical to MTA:SA

Detaches an element from the one it was attached to.

Syntax

bool detachElements(element theElement [, element theAttachToElement = nil])

Arguments

theElementelement
The attached element.
theAttachToElementelement, optional = nil
The element to detach from.

Returns

true on success.

Example

if isElementAttached(box) then
    detachElements(box)
end