> ## 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 lockpicked a vehicle

> Triggered server side when a vehicle is lockpicked.

Triggered when a vehicle has been lockpicked.

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

end)
```

### Parameters

| Name           | Data Type | Description        |
| -------------- | --------- | ------------------ |
| `playerId`     | integer   | Player server ID   |
| `vehicleNetId` | integer   | Vehicle network ID |

## Example

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

    print("The player " .. GetPlayerName(playerId) .. " has just lockpicked a vehicle with model " .. GetEntityModel(vehicle))
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

- [Server](/vehicles-keys/server/index.md)
- [Player hotwired a vehicle](/vehicles-keys/server/player-hotwired-a-vehicle.md)
- [Refresh player owned vehicles](/vehicles-keys/server/refresh-player-owned-vehicles.md)
- [Alarm activated (player vehicle)](/vehicles-keys/server/alarms/alarm-activated-player-vehicle.md)
- [Get all vehicles of player](/jobs-creator/server/buyable-vehicles/get-all-vehicles-of-player.md)
