> For the complete documentation index, see [llms.txt](https://docs.menanak47.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.menanak47.com/multi-framework/ak47_vehiclekeys/commands/client.md).

# Client

This page documents all player-facing client commands and key mappings in AK47 Vehicle Keys

All command names and default keybindings can be customized in [`config.lua`](file:///f:/Fivem%20Work/%5BAsset-Link%5D/%5Bmulti-framework%5D/ak47_vehiclekeys/config.lua). Players can also remap these keys in their GTA V **Settings > Key Bindings > FiveM** menu.

***

### `/engine`

Toggles the vehicle's engine ON or OFF.

* **Default Keybind**: `G` (Configurable via `Config.EngineButton`)
* **Config Setting**: `Config.Commands.engine`
* **Access Requirements**: Player must have one of:
  * A physical car key item in inventory
  * A virtual key
  * Whitelisted job vehicle access (e.g. Police)
  * Hotwired status on the vehicle

#### Usage

```
/engine
```

***

### `/togglevlock`

Locks or unlocks the player's vehicle or the nearest vehicle within signal radius (`Config.SignalRadius`).

* **Default Keybind**: `L` (Configurable via `Config.LockUnlockKey`)
* **Config Setting**: `Config.Commands.togglevlock`
* **Features**:
  * Triggers visual indicator lights and lock/unlock audio sounds.
  * Closes all vehicle doors when locking.
  * Turns engine off when locking if `Config.EngineOffWithLockVehicle` is enabled.

#### Usage

```
/togglevlock
```

***

### `/givekey`

Transfers a virtual vehicle key to a nearby player.

* **Config Setting**: `Config.Commands.givekey`
* **Parameters**: `[targetId]` (Optional)
* **Maximum Distance**: 3.0 meters

#### Usage Examples

* **Give key to nearest player**:

  ```
  /givekey
  ```
* **Give key to specific server ID**:

  ```
  /givekey 5
  ```

{% hint style="info" %}
When giving a virtual key to another player while sitting in the driver's seat, the current driver will automatically exit the vehicle.
{% endhint %}

***

### `/lockpick`

Initiates lockpicking on the vehicle the player is currently targeting or sitting in.

* **Config Setting**: `Config.Commands.lockpick`
* **Requirements**:
  * Lockpick item in inventory (if `Config.LockPickItem` is defined).
  * Vehicle must not be in the ignored list or cycle class.
* **Behaviors**:
  * Opens the tension minigame or configured skillcheck.
  * Has a chance to sound the vehicle alarm and notify police dispatch.
  * Chance to break lockpick item on failure (`Config.LockPickBreakChanceOnFail`).

#### Usage

```
/lockpick
```
