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
| Name | Type | Description |
|---|---|---|
| hitElement | element | The element that left. |
| matchingDimension | bool | Whether 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.