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

Function

isElementWithinColShape

Server and clientElementsIdentical to MTA:SA

Checks whether an element is currently inside a collision shape.

Syntax

bool isElementWithinColShape(element theElement, colshape theShape)

Arguments

theElementelement
The element.
theShapecolshape
The shape.

Returns

true if inside.

Example

addCommandHandler("kup", function(player)
    if not isElementWithinColShape(player, shopZone) then
        outputChatBox("Musisz być w sklepie.", player, 255, 0, 0)
        return
    end
end)

See also