Commands
Core Inventory includes commands for inventory management, item administration, and dev tools.
Inventory Commands
all
/invqb-coreesx
Opens the player inventory. Alternative to the keybind (default TAB).
Usage
lua
/invAdmin Commands
admin
/giveitemqb-coreesx
Gives an item to a player or a specific inventory. Supports metadata as a JSON string for weapons, clothing, and other items with custom data.
| Argument | Type | Description |
|---|---|---|
id | number|string | Player ID or me for yourself |
item | string | Item name (not label) |
amount | number | Amount to give |
metadata | string | Optional JSON metadata string |
Usage
lua
-- Give yourself 5 bread
/giveitem me bread 5
-- Give player 1 a pistol with metadata
/giveitem 1 weapon_pistol 1 {"ammo":12,"durability":100}
-- Give clothing with component data
/giveitem me pants 1 {"mID":4,"mModel":24,"mTexture":0,"wID":4,"wModel":24,"wTexture":0}admin
/removeitemqb-coreesx
Removes an item from a player inventory.
| Argument | Type | Description |
|---|---|---|
id | number|string | Player ID or me for yourself |
item | string | Item name (not label) |
amount | number | Amount to remove |
Usage
lua
/removeitem me bread 5
/removeitem 1 weapon_pistol 1admin
/clearinventoryqb-coreesx
Clears a player main inventory (pockets). Removes all items from the content inventory.
| Argument | Type | Description |
|---|---|---|
id | number|string | Player ID or me for yourself |
Usage
lua
/clearinventory me
/clearinventory 1admin
/clearallinventoryqb-coreesx
Clears ALL of a player inventories — pockets, weapon holders, clothing slots, and any attached containers.
| Argument | Type | Description |
|---|---|---|
id | number|string | Player ID or me for yourself |
Usage
lua
/clearallinventory me
/clearallinventory 1Dev Tools
admin
/core_inventoryqb-coreesx
Toggles the C8RE Tools panel. Provides real-time item editing, inventory inspection, and debugging tools. When ItemsDataOverride is enabled, this panel allows live item property editing.
Usage
lua
/core_inventoryINFO
Admin commands check for admin permissions via your framework's built-in admin system. Non-admin players cannot use these commands even if typed directly.
Keybinds
The following actions are bound to keys by default (not typed as commands):
| Key | Action |
|---|---|
TAB | Open inventory |
1 | Switch to primary weapon slot |
2 | Switch to secondary weapon slot |
3 | Switch to melee weapon slot |
R | Reload current weapon |
INFO
The secondary slot requires EnableSecondaryWeaponSlot = true and the melee slot requires EnableMeleeWeaponSlot = true in config.
