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

# Breaking windows and lockpicking

> Get into a locked car without keys: break the glass or pick the lock

A locked car can be opened without keys in two ways: **break a window** (fast and loud) or **pick the lock** (needs a lockpick and a minigame). Both only open the doors: the car still has to be [hotwired](https://docs.jaksam-scripts.com/vehicles-keys/guides/hotwire-and-search.md).

## For the player

> [tab] Break the glass
>
> **1. Try to get in**
>
> Walk to a locked car and press **F** as usual. You see **Press \[E] to break the glass**.
>
> **2. Break it**
>
> Press **E**. The window breaks and you get in.

> [tab] Pick the lock
>
> **1. Stand next to the car**
>
> The car must be locked and within 3 m.
>
> **2. Use the lockpick**
>
> Use the **lockpick** item from your inventory and play the lockpick minigame. You have 5 tries.
>
> **3. Get in**
>
> When it works, the doors unlock.

> [!WARNING]
>
> Breaking a window sets off the alarm at once. Picking the lock is quiet, but the alarm goes off when you **hotwire** the car. A player's car sounds only if its owner [installed an alarm](https://docs.jaksam-scripts.com/vehicles-keys/guides/alarms.md). For an NPC car the police may be told.

## For the admin

Open `/vehiclekeys` > **Settings**.

### Windows and NPC cars

| Option | What it does |
| - | - |
| Players can break the windows of player-owned cars | Off by default: only NPC cars can be broken into |
| Turn off window breaking on every car | Nobody can break windows, locked cars stay locked |
| Lock NPC cars being driven | An NPC car with a driver is always locked |
| Lock parked NPC cars | Parked NPC cars are locked. It can also lock cars you didn't mean to, for example cars spawned by other scripts |
| Chance the police are alerted when an NPC car is stolen (%) | Used when the alarm of an NPC car goes off |

### Lockpicking

| Option | What it does |
| - | - |
| Lockpick item name | `lockpick` by default |
| The lockpick is used up | The item is removed at each use |
| The lockpick can't open player-owned cars | The lockpick works only on NPC cars |

> [!NOTE]
>
> The lockpick minigame comes from the free [lockpick script](https://github.com/baguscodestudio/lockpick) by baguscodestudio. It must be started, see [Installation](https://docs.jaksam-scripts.com/vehicles-keys/installation.md). With [Doors Creator](https://fivem.jaksam-scripts.com/) on the server, the same lockpick item opens the closest locked door when no car is closer.

The [theft presets](https://docs.jaksam-scripts.com/vehicles-keys/guides/theft-presets.md) change these fields too. For a quieter way into a car, see the [key emulator](https://docs.jaksam-scripts.com/vehicles-keys/guides/key-emulator.md).


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