> For the complete documentation index, see [llms.txt](https://documentation.jaksam-scripts.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.jaksam-scripts.com/vehicles-keys/server/alarms/alarm-activated-npc-vehicle.md).

# Alarm activated (NPC vehicle)

Triggered when an alarm is triggered on a NPC vehicle

## Event

```lua
RegisterNetEvent("vehicles_keys:alarmOnNPCVehicle", function(vehicle, vehicleCoords)

end)
```

### Parameters

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

## Example

```lua
RegisterNetEvent("vehicles_keys:alarmOnNPCVehicle", function(vehicle, vehicleCoords)
    -- You can add an external notification if you want
end)
```

## Where to insert the code?

You can place it in the file `integrations/sv_integrations.lua` of the script, **at the bottom of the file on new lines**
