SerweryWłasny serwerDla twórcówForumFAQDokumentacjaBezpieczeństwo
Pobierz launcher
  1. Dokumentacja
  2. Funkcje wspólne
  3. detachElements

Funkcja

detachElements

Serwer i klientElementyIdentyczna z MTA:SA

Odczepia element od tego, do którego był przyczepiony.

Składnia

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

Argumenty

theElementelement
Przyczepiony element.
theAttachToElementelement, opcjonalny = nil
Element, od którego odczepiasz.

Zwraca

true przy powodzeniu.

Przykład

if isElementAttached(box) then
    detachElements(box)
end