> ## 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 (NPC vehicle)

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

Triggered when an alarm is triggered on an NPC vehicle.

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

end)
```

### Parameters

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

## Example

```lua theme={null}
RegisterNetEvent("vehicles_keys:alarmOnNPCVehicle", function(vehicle, vehicleCoords)
    -- 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 (player vehicle)](/vehicles-keys/server/alarms/alarm-activated-player-vehicle.md)
- [NPC Selling](/drugs-creator/client/npc-selling/index.md)
- [Sold to NPC](/drugs-creator/server/sellings/sold-to-npc.md)
- [Installation](/vehicles-keys/installation.md)
