# onClientColShapeLeave (Client)

> Fired when a player, ped, vehicle or object 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/onClientColShapeLeave

## Syntax

```lua
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

```lua
addEventHandler("onClientColShapeLeave", zone, function(leftElement)
    if leftElement == localPlayer then
        outputDebugString("You left the shop")
    end
end)
```

### Note

An element destroyed inside the shape leaves it without firing this event.

## See also

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