ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. isElementCollidableWith

Function

isElementCollidableWith

ClientElementsIdentical to MTA:SA

Checks whether two elements can collide.

Syntax

bool isElementCollidableWith(element theElement, element withElement)

Arguments

theElementelement
The first element.
withElementelement
The second element.

Returns

true if they can collide.

Example

if not isElementCollidableWith(localPlayer, ghostCar) then
    outputChatBox("Przenikasz przez auto-ducha.")
end

See also