Skip to content

Commands

Core Inventory includes commands for inventory management, item administration, and dev tools.

Inventory Commands

all/inv
qb-coreesx

Opens the player inventory. Alternative to the keybind (default TAB).

Usage
lua
/inv

Admin Commands

admin/giveitem
qb-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.

ArgumentTypeDescription
idnumber|stringPlayer ID or me for yourself
itemstringItem name (not label)
amountnumberAmount to give
metadatastringOptional 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/removeitem
qb-coreesx

Removes an item from a player inventory.

ArgumentTypeDescription
idnumber|stringPlayer ID or me for yourself
itemstringItem name (not label)
amountnumberAmount to remove
Usage
lua
/removeitem me bread 5
/removeitem 1 weapon_pistol 1
admin/clearinventory
qb-coreesx

Clears a player main inventory (pockets). Removes all items from the content inventory.

ArgumentTypeDescription
idnumber|stringPlayer ID or me for yourself
Usage
lua
/clearinventory me
/clearinventory 1
admin/clearallinventory
qb-coreesx

Clears ALL of a player inventories — pockets, weapon holders, clothing slots, and any attached containers.

ArgumentTypeDescription
idnumber|stringPlayer ID or me for yourself
Usage
lua
/clearallinventory me
/clearallinventory 1

Dev Tools

admin/core_inventory
qb-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_inventory

INFO

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):

KeyAction
TABOpen inventory
1Switch to primary weapon slot
2Switch to secondary weapon slot
3Switch to melee weapon slot
RReload current weapon

INFO

The secondary slot requires EnableSecondaryWeaponSlot = true and the melee slot requires EnableMeleeWeaponSlot = true in config.