> ## Documentation Index
> Fetch the complete documentation index at: https://fivem.volkman.cz/llms.txt
> Use this file to discover all available pages before exploring further.

# CEventGunShot

> Triggered when a gunshot is fired, but also if a ped is near a gunshot and reacts to it (scared / hearing / running from it).

<Warning>Available since server artifact `v5182`</Warning>

* `entities` - table contains entity ids of peds that reacted to the gunshot including the shooter
* `entity` - stands for the entity that fired the gunshot
* `data` - sometimes contains a table with unknown values, but mostly it's empty

```lua theme={null}
AddEventHandler('CEventGunShot', function(entities, entity, data)

end)
```
