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

# Key emulator

> A thief device that opens a locked car without breaking the glass, with a three step minigame

The **key emulator** is a handheld device for thieves. Used next to a locked car, it plays a short minigame and, when it works, the doors open with the usual blink and chirp, **without a broken window**. The car still has to be [hotwired](https://docs.jaksam-scripts.com/vehicles-keys/guides/hotwire-and-search.md).

It is **off by default**.

## For the thief

**1. Stand next to a locked car**

On foot, next to a door. The car must be locked.

**2. Use the emulator**

Use the **Key emulator** (`key_emulator`) from your inventory. The minigame opens.

**3. Play the 3 steps**

1. **TUNE**: **A** and **D** tune to the car. Hold **E** when the signal is full
2. **MATCH**: **W** and **S** slide your reply onto the car's wave (on hard cars **A** and **D** stretch it too). Hold **E** to send
3. **SEND**: your reply goes to the car

**4. Get in**

You read "The car took the code: doors open". Now hotwire it.

What the minigame can tell you:

| Message | Meaning |
| - | - |
| No answer: another car | You tuned to the wrong signal, keep tuning |
| Wrong reply: line up every piece of the wave before holding E | The waves did not match |
| Too slow: the car went back to sleep | The time ran out |

After a miss you try again right away. After a few misses (3 by default) the minigame becomes a simple progress bar, so nobody gets stuck. Walking away from the car stops it.

### When it refuses

| Message | Why |
| - | - |
| Get out of the vehicle to use the emulator | Use it on foot |
| This vehicle is not locked | The car is already open |
| The emulator does not work on this vehicle | Motorcycles, bicycles and cars without doors |
| This car does not answer the emulator | The admin turned the emulator off for this kind of car |
| This car belongs to a player: the emulator cannot open it here | The server allows it only on cars nobody owns |
| The emulator needs 60 s before it works again | Wait after the last car you opened |
| Not enough police in the city for this | The server needs more police online |

## For the admin

Open `/vehiclekeys` > **Settings** > **Key emulator** and tick **Thieves can open locked cars with a key emulator, without breaking the glass**. Add the `key_emulator` item to your inventory, see [Installation > Items](https://docs.jaksam-scripts.com/vehicles-keys/installation.md#items).

### Ready-made setups

Pick one and every field is filled for you. You can still change any field after.

| Setup | What it does |
| - | - |
| **Casual** | Easy on every car, never rings an alarm, no wait between cars |
| **Balanced** | As hard as hotwiring, alarms make it harder, 25% alarm chance on a miss, 60 s between cars. These are the default values |
| **Hardcore** | Hard on fast cars, police cars refuse it, 2 police needed online, the device is used up and the opening is not silent |

The label **Now:** next to the setups tells which one your fields match.

### Options

| Option | What it does |
| - | - |
| Device item name | `key_emulator` by default |
| How it plays | Minigame, or only a progress bar |
| Failed tries before the minigame turns into a progress bar | 3 by default |
| Progress bar length (seconds) | 8 by default |
| Chance a failed try sets off the alarm (%) | 25% by default |
| Seconds before the device works again (0 = no wait) | Counted from the last car opened, 60 s by default |
| Police needed online (0 = none) | 0 by default |
| Opening is silent: no alarm when the car is hotwired afterwards | On by default. Off: the alarm goes off when the thief hotwires the car |
| The device is used up when it opens a car | Off by default |
| Players' own cars can be opened too | On by default |
| An alarm installed on a player's car makes it harder | Each alarm level adds one step of difficulty, up to Hard |
| Difficulty by vehicle class | **Same as hotwiring**, or untick it to choose for each class. **Off** means the device does not work on that class, for example emergency vehicles |


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