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

Function

getElementCollisionsEnabled

Server and clientElementsIdentical to MTA:SA

Checks whether an element has collisions enabled (yes by default).

Syntax

bool getElementCollisionsEnabled(element theElement)

Arguments

theElementelement
The element.

Returns

true if collisions are on.

Example

if not getElementCollisionsEnabled(object) then
    setElementCollisionsEnabled(object, true)
end

See also