ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client events
  3. onClientColShapeHit

Event

onClientColShapeHit

ClientCollision shapesIdentical to MTA:SA

An element entered a client-created shape. Attach the handler to that shape or to root (the event does not pass through parents).

Handler

addEventHandler("onClientColShapeHit", root, function(theElement, matchingDimension) ... end)

Parameters

theElementelement
The element.
matchingDimensionbool
Always true.

Source

source is the shape.

Example

local zone = createColSphere(2495, -1687, 13.5, 10)
addEventHandler("onClientColShapeHit", zone, function(el)
    if el == localPlayer then outputChatBox("Jesteś przy domu CJ") end
end)

See also