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

Event

onClientElementColShapeHit

ClientCollision shapesIdentical to MTA:SA

An element entered a collision shape (the element-side version, on the client).

Handler

addEventHandler("onClientElementColShapeHit", root, function(theShape, matchingDimension) ... end)

Parameters

theShapecolshape
The shape.
matchingDimensionbool
Whether in the same dimension.

Source

source is the element.

Example

addEventHandler("onClientElementColShapeHit", localPlayer, function(shape)
    if getElementData(shape, "strefa") then outputChatBox("Wszedłeś do strefy") end
end)

See also