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

# Hotwiring and searching for keys

> Start a car without its keys: search the car first, then hotwire it with a progress bar or a minigame

A player who sits in the driver seat of a car they have **no keys** for can't start it. They have two ways: **search for the keys** in the car, or **hotwire** it.

## For the player

**1. Sit in the driver seat**

The car must be still. You see **Press \[H] to search for keys**.

**2. Search for the keys**

Press **H**. After a few seconds you read **Keys found** or **Keys not found**. Each car can be searched only once.

**3. Hotwire**

No keys? You now see **Press \[H] to hotwire**. Press **H** and finish the progress bar or the minigame. When it works, the engine starts.

You can stop a hotwire with **H** or **F**.

> [!TIP]
>
> Aim a weapon at the driver of a moving NPC car, from up to 10 m: the driver gets out and runs away, and the keys stay in the car. Searching that car always finds them.

Keys found in a car are **temporary**: they stop working at the next server restart. With [keys as items](https://docs.jaksam-scripts.com/vehicles-keys/guides/keys-as-items.md) on, they can become an item.

### The minigames

| Minigame | How to play it |
| - | - |
| Progress bar (no minigame) | Wait until the bar is full |
| Ignition wires | Drag each loose wire to the terminal of its color with the mouse. The first wrong wire is only a warning, the second one fails |
| Catch the signal | Press **Space** to stop the needle inside the green window, 3 times. One miss fails |
| Skill check | Press **E** when the line is on the blue |

Harder cars give less time and smaller targets. After a failed try you may have to wait before the next one: the prompt says **Try again in 10 s**.

> [!NOTE]
>
> Motorcycles, bicycles and trains never need to be hotwired or searched.

## For the admin

Open `/vehiclekeys` > **Settings**. The fastest way is a [theft preset](https://docs.jaksam-scripts.com/vehicles-keys/guides/theft-presets.md) at the top of the page: it fills every field below in one click.

### Hotwiring

| Option | What it does |
| - | - |
| Players must hotwire cars they have no keys for | Off: anybody can start any car |
| Hotwire minigame | What the player plays after pressing **H**. Progress bar is the classic hotwire |
| Time to hotwire (seconds) | Length of the progress bar |
| Hotwire success chance (%) | With the progress bar, the chance it works at the end |
| Difficulty by vehicle class | Easy, Normal or Hard for each class. "Other classes" is used for every class not listed |
| Chance a failed try sets off the alarm (%) | Only with a minigame |
| Seconds before the same player can try that car again | Wait after a failed minigame, 0 = no wait |

By default sports, sports classics and muscle cars are **Normal**, super cars are **Hard** and the rest is **Easy**. The same difficulty is used by the relay attack, the key programmer and the key emulator (when "Same as hotwiring" is ticked).

> [!NOTE]
>
> A failed try that sets off the alarm: an NPC car sounds its alarm and the police may be told. A player's car reacts only if the owner [installed an alarm](https://docs.jaksam-scripts.com/vehicles-keys/guides/alarms.md).

### Searching for keys

| Option | What it does |
| - | - |
| Can search for keys | Shows the **Press \[H] to search for keys** prompt |
| Chance to find keys (%) | The chance a search finds the keys |
| Seconds to search for keys | How long the search takes |
| Driving NPCs flee away when aimed at | Aiming at an NPC driver makes them leave the car with the keys inside |

Cars owned by players can't be searched: their keys are never inside.

### Your own minigame

You can add a minigame from another script. Copy `vehicles_keys/client/minigames/_EXAMPLE_MINIGAME.lua`, rename it and follow the comments at the top. The new minigame appears in the **Hotwire minigame** list. The file format is the same as Boosting Creator's minigames: a file made for one works in the other.

To turn hotwiring off for a moment from another script (for example inside a car shop), see [Toggle hotwiring](https://docs.jaksam-scripts.com/vehicles-keys/client/toggle-hotwiring.md).


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