M MY Multiplayer: Wiki
Side
Kind

onClientColShapeLeave

ClientEvent

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

addEventHandler("onClientColShapeLeave", root, function(element hitElement, bool matchingDimension) … end)

Handler parameters

NameTypeDescription
hitElementelementThe element that left.
matchingDimensionboolWhether the element is in the same dimension as the shape.

Source

The collision shape (colshape).

Example

addEventHandler("onClientColShapeLeave", zone, function(leftElement)
    if leftElement == localPlayer then
        outputDebugString("You left the shop")
    end
end)
NoteAn element destroyed inside the shape leaves it without firing this event.

See also