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

# Player hotwired a vehicle

> Se déclenche côté serveur quand un véhicule est court-circuité.

Se déclenche quand un véhicule a été court-circuité.

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

end)
```

### Paramètres

| Nom | Type de donnée | Description |
| - | - | - |
| `playerId` | integer | ID serveur du joueur |
| `vehicleNetId` | integer | ID réseau du véhicule |

## Exemple

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

    print("The player " .. GetPlayerName(playerId) .. " has just hotwired a vehicle with model " .. GetEntityModel(vehicle))
end)
```

<Note>
  Place ce code dans le fichier `integrations/sv_integrations.lua` du script, en bas du fichier sur de nouvelles lignes.
</Note>


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