> ## 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.

# Botón de pánico presionado

> Se activa del lado del servidor cuando un jugador usa el botón de pánico.

Este event se activa cuando un jugador usa el botón de pánico.

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

end)
```

### Parámetros

| Nombre | Tipo de dato | Descripción |
| - | - | - |
| `playerId` | integer | El ID de servidor del jugador que presionó el botón de pánico |

## Ejemplo

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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.