# createColCircle (Shared)

> Creates a circular collision shape with no height limit.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Shared
- **Category**: Collision shapes
- **URL**: https://wiki.mymp.gg/en/createColCircle

## Syntax

```lua
element|false createColCircle(float x, y, float radius)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `x, y` | `float` | The circle's centre. A `vec2` also works. |
| `radius` | `float` | The radius in metres. |

## Returns

The created `colshape` element, or `false` if it could not be created.

A collision shape detects players, peds, vehicles and objects by their position and fires `onColShapeHit` and `onColShapeLeave` (`onClientColShapeHit` and `onClientColShapeLeave` on a client). It goes away when the resource that created it stops.

## Example

```lua
local zone = createColCircle(1480.0, -1740.0, 25)
addEventHandler("onColShapeHit", zone, function(hitElement)
    if getElementType(hitElement) == "player" then
        outputDebugString(getPlayerName(hitElement) .. " entered the plaza")
    end
end)
```

## See also

- [createColTube (Shared)](https://wiki.mymp.gg/en/createColTube.md): Creates a collision shape shaped like an upright cylinder.
- [createColSphere (Shared)](https://wiki.mymp.gg/en/createColSphere.md): Creates a spherical collision shape.
- [onColShapeHit (Server)](https://wiki.mymp.gg/en/onColShapeHit.md): Fired when a player, ped, vehicle or object enters a collision shape.
