> For the complete documentation index, see [llms.txt](https://oph3zdev.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://oph3zdev.gitbook.io/docs/paid-scripts/inventory/commands.md).

# Commands

Player commands work for everyone. Admin commands need the matching `oph3z.admin.*` permission from the Admin page - the server console always has full access.

### Player commands

#### /inv

Opens the inventory. Near a vehicle it opens the trunk or glovebox context aware. `/inventory` and `/openinv` do the same.

```
/inv
```

#### /closeinv

Closes the inventory.

```
/closeinv
```

#### /hotbar

Peeks the quick access slots without opening the inventory. Default key: TAB.

```
/hotbar
```

#### /search

Opens the closest player's inventory. Which states can be searched (dead, cuffed, hands up) is set in `Config.Rob`.

```
/search
```

#### /deathrob

Opens the closest **dead** player's inventory.

```
/deathrob
```

### Admin commands

#### /invadmin

Opens the admin panel. Needs `read` (or any admin ace). Rename it with `Config.AdminCommand`.

```
/invadmin
```

#### /giveitem

Gives an item to a player by server id. Needs `give`.

```
/giveitem 12 bandage 5
```

#### /removeitem

Removes an item from a player. Without an id it targets yourself. Needs `wipe`.

```
/removeitem 12 bandage 5
```

#### /clearinv

Wipes a player's inventory. Needs `wipe`.

```
/clearinv 12
```

#### /robplayer

Opens the closest player's inventory with no conditions - ignores the `Config.Rob` rules. Needs `forceopen`.

```
/robplayer
```

#### /openinventoryplayer

Opens a player's inventory by server id, from any distance. Needs `forceopen`.

```
/openinventoryplayer 12
```

#### /openstash

Opens any stash by id - ignores coordinates, job locks and owners. Needs `forceopen`.

```
/openstash evidence_locker
```

#### /checkserveronlineitems

Counts an item across every online player's inventory. Console only.

```
/checkserveronlineitems weapon_pistol
```

#### /checkserverofflineitems

Counts an item across the whole database, offline characters included. Needs `read`, or the console.

```
/checkserverofflineitems weapon_pistol
```
