ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server events
  3. onColShapeHit

Event

onColShapeHit

ServerCollision shapesIdentical to MTA:SA

An element entered a collision shape.

Handler

addEventHandler("onColShapeHit", root, function(hitElement, matchingDimension) ... end)

Parameters

hitElementelement
The element.
matchingDimensionbool
Whether it is in the same dimension.

Source

source is the shape.

Example

local zone = createColCircle(2495, -1687, 25)
addEventHandler("onColShapeHit", zone, function(el, dim)
    if dim and getElementType(el) == "player" then outputChatBox("Witaj na Grove Street", el) end
end)

See also