> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jaksam-scripts.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Panic button pressed

> Triggered server side when a player uses the panic button.

This event is triggered when a player uses the panic button.

```lua Event theme={null}
AddEventHandler("trackers_creator:playerPressedPanicButton", function(playerId)

end)
```

### Parameters

| Name       | Data Type | Description                                              |
| ---------- | --------- | -------------------------------------------------------- |
| `playerId` | integer   | The server ID of the player who pressed the panic button |

## Example

```lua theme={null}
RegisterNetEvent("trackers_creator:playerPressedPanicButton", function(playerId)
    local name = GetPlayerName(playerId)
    local plyPed = GetPlayerPed(playerId)
    local coords = GetEntityCoords(plyPed)

    print("Player " .. name .. " pressed panic button in coordinates " .. tostring(coords))
end)
```


## Related topics

- [Panic button pressed](/trackers-creator/client/panic-button-pressed.md)
- [Client](/trackers-creator/client/index.md)
- [Server](/trackers-creator/server/index.md)
- [Manually start panic button](/trackers-creator/client/manually-start-panic-button.md)
- [Action Buttons](/jaksam-inventory/guides/action-buttons.md)
