M MY Multiplayer: Wiki
Side
Kind

onClientElementColShapeLeave

ClientEvent

Fired on a player, ped, vehicle or object when it leaves a collision shape on this client.

addEventHandler("onClientElementColShapeLeave", root, function(element colShape, bool matchingDimension) … end)

Handler parameters

NameTypeDescription
colShapeelementThe collision shape it left.
matchingDimensionboolWhether the element is in the same dimension as the shape.

Source

The element that left.

It fires right after onClientColShapeLeave, unless a handler of that one destroyed the element.

Example

addEventHandler("onClientElementColShapeLeave", localPlayer, function(colShape)
    outputDebugString("Left a zone")
end)

See also