# onClientElementColShapeLeave (Client)

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

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Event
- **Side**: Client
- **Category**: Collision shapes
- **URL**: https://wiki.mymp.gg/en/onClientElementColShapeLeave

## Syntax

```lua
addEventHandler("onClientElementColShapeLeave", root, function(element colShape, bool matchingDimension) ... end)
```

## Handler parameters

| Name | Type | Description |
| --- | --- | --- |
| `colShape` | `element` | The collision shape it left. |
| `matchingDimension` | `bool` | Whether 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

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

## See also

- [onClientElementColShapeHit (Client)](https://wiki.mymp.gg/en/onClientElementColShapeHit.md): Fired on a player, ped, vehicle or object when it enters a collision shape on this client.
- [onClientColShapeLeave (Client)](https://wiki.mymp.gg/en/onClientColShapeLeave.md): Fired when a player, ped, vehicle or object leaves a collision shape on this client.
