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

Event

onElementColShapeHit

ServerCollision shapesIdentical to MTA:SA

An element entered a collision shape (the version from the element side).

Handler

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

Parameters

theShapecolshape
The shape.
matchingDimensionbool
Whether in the same dimension.

Source

source is the element.

Example

addEventHandler("onElementColShapeHit", root, function(shape, dim)
    if getElementType(source) == "vehicle" and dim then setElementData(source, "wStrefie", true) end
end)

See also