# Commands and keybinds

## Admin commands

Allowed for the ACE `command.koja-inventory-v2` and the groups in `Config.AdminGroups`. Wherever a player id is asked for, `me` means yourself.

| Command | What it does |
|---|---|
| `/invadmin` | Opens the [admin panel](/new/inventory-v2/admin-panel). |
| `/giveitem [id\|me] [item] [count]` | Gives an item. |
| `/removeitem [id\|me] [item] [count]` | Removes up to that many. |
| `/clearinv [id\|me]` | Clears a player's inventory. |
| `/openinv [id\|me\|stash]` | Opens a player's inventory or a stash by name. |
| `/openstash [containerId]` | Opens any container by its id. |
| `/invkit [kit] [id\|me]` | Gives a ready item kit: `showcase` (default), `weapons`, `attachments`, `food`, `medical`, `fishing`, `materials`. Kits are in `Config.DebugKits`. |
| `/invdummy [pose]` | Spawns a test ped with items for testing frisk and give. See below. |
| `/trunkarea` | Calibrates where trunk props lie for the vehicle model you stand at. |
| `koja_migrate_ox [force]` | Console only. Imports every ox_inventory inventory at once. See [Migrating from ox_inventory](/new/inventory-v2/migrating-from-ox). |

### Test dummies

`/invdummy` spawns a ped that behaves like a player for frisking and giving (up to `Config.Dummies.max`). The other subcommands act on the dummy nearest to you.

| Command | What it does |
|---|---|
| `/invdummy` or `/invdummy handsup\|cuffed\|dead\|stand` | Spawns a dummy, optionally in that pose (`Config.Dummies.poses`). |
| `/invdummy pose <pose>` | Changes the pose. |
| `/invdummy answer accept\|decline\|ignore` | How it answers give offers. |
| `/invdummy give` | It offers you a random item. |
| `/invdummy fill` | Refills its items from `Config.Dummies.items`. |
| `/invdummy open` | Opens its inventory. |
| `/invdummy remove` | Removes it. |
| `/invdummy clear` | Removes all your dummies. |

## Player commands

| Command | Config | What it does |
|---|---|---|
| `/frisk` | `Config.Frisk.command` | Frisks the player in front of you (hands up, cuffed or dead). |
| `/search` | `Config.Search.jobs` | Searches the nearest player (police jobs). |

## Keybinds

All keys are FiveM key mappings: players can change them in **Settings → Key Bindings → FiveM**.

| Key | Mapping | Config |
|---|---|---|
| `TAB` | Open inventory | `Config.Keys.open` |
| `Z` | Inventory: show hotbar | `Config.Keys.hotbar` |
| `1` to `5` | Inventory: slot 1 to 5 | `Config.HotbarSize` |
| `E` | Interact (shop, bench, ground) | `Config.Keys.interact` |
| Middle mouse | Throw weapon (hold) | `Config.Throw.key` |
| none | Search player (hands up) | `Config.Frisk.key` |

While holding an item: `E` use, right mouse throw, left mouse put down, `X` put away (`Config.Hands.controls`). With a firearm drawn, `R` reloads from the ammo in your inventory.
