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

# Vehicle window broken

> Se activa del lado servidor cuando un jugador rompe la ventana de un vehículo.

```lua Event theme={null}
RegisterNetEvent("vehicles_keys:vehicleWindowBroken", function(playerId, vehicleNetId)

end)
```

### Parámetros

| Nombre | Tipo de dato | Descripción |
| - | - | - |
| `playerId` | integer | El ID de servidor del jugador que rompió la ventana |
| `vehicleNetId` | integer | El ID de red del vehículo |

## Ejemplo

```lua theme={null}
RegisterNetEvent("vehicles_keys:vehicleWindowBroken", function(playerId, vehicleNetId)
    local vehicle = NetworkGetEntityFromNetworkId(vehicleNetId)

    print(GetPlayerName(playerId) .. " broke the window of plate " .. GetVehicleNumberPlateText(vehicle))
end)
```


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