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

# Alarm activated (player vehicle)

> Triggered server side when an alarm is activated on a player vehicle.

Triggered when an alarm on a player vehicle is activated.

```lua Event theme={null}
RegisterNetEvent("vehicles_keys:alarmOnPlayerVehicle", function(vehicle, vehicleCoords, alarmLevel)

end)
```

### Parameters

| Name            | Data Type | Description                      |
| --------------- | --------- | -------------------------------- |
| `vehicle`       | integer   | Vehicle handle                   |
| `vehicleCoords` | vector3   | The coordinates of the vehicle   |
| `alarmLevel`    | integer   | The level of the installed alarm |

## Example

```lua theme={null}
RegisterNetEvent("vehicles_keys:alarmOnPlayerVehicle", function(vehicle, vehicleCoords, alarmLevel)
    -- You can add an external notification if you want
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

- [Alarms](/vehicles-keys/server/alarms/index.md)
- [Alarm activated (NPC vehicle)](/vehicles-keys/server/alarms/alarm-activated-npc-vehicle.md)
- [Server](/vehicles-keys/server/index.md)
- [Installation](/vehicles-keys/installation.md)
- [FAQ](/robberies-creator/faq.md)
