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

# Police alerted

> Triggered server side, once per alert, when police is alerted.

Triggered when police is alerted server side (only **1** time per alert, instead of on each player like the client-side one).

```lua Event theme={null}
RegisterNetEvent("robberies_creator:alertedPolice", function(coords, message)

end)
```

### Parameters

| Name      | Data Type | Description                               |
| --------- | --------- | ----------------------------------------- |
| `coords`  | vector3   | Coordinates where the alert was triggered |
| `message` | string    | Message that would be displayed           |

## Example

```lua theme={null}
RegisterNetEvent("robberies_creator:alertedPolice", function(coords, message)
    -- just an example, will NOT work
    TriggerClientEvent("news_script:heistAlert", -1, coords, message)
end)
```

<Note>
  Place this code in the file `integrations/sv_integrations.lua` of the script, at the bottom of the file on new lines.
</Note>


## Related topics

- [Police alerted](/doors-creator/server/police-alerted.md)
