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

> Se activa del lado servidor cuando se activa una alarma en un vehículo de NPC.

Se activa cuando se dispara una alarma en un vehículo de NPC.

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

end)
```

### Parámetros

| Nombre | Tipo de dato | Descripción |
| - | - | - |
| `vehicle` | integer | Handle del vehículo |
| `vehicleCoords` | vector3 | Las coordenadas del vehículo |

## Ejemplo

```lua theme={null}
RegisterNetEvent("vehicles_keys:alarmOnNPCVehicle", function(vehicle, vehicleCoords)
    -- Puedes añadir una notificación externa si quieres
end)
```

<Note>
  Coloca este código en el archivo `integrations/sv_integrations.lua` del script, al final del archivo en líneas nuevas.
</Note>


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