Skip to Content
Mavix

Inventory System

Everything a player carries, plus car trunks, gloveboxes and stashes.

What it is

The inventory holds every item a player carries: food, tools, weapons, and also cash. The same screen opens car trunks, gloveboxes, stashes and shops.

Your inventory next to a 24/7 store. The Pocket row (slots 1 to 5) is the hotbar.
Your inventory next to a 24/7 store. The Pocket row (slots 1 to 5) is the hotbar.
The hotbar after pressing Tab.
The hotbar after pressing Tab.

How it works

  • Carry limit. Every player has 50 slots and can carry up to 60 kg.
  • Use an item. Right-click an item and choose Use, or put it in slots 1 to 5 and press that number. Food and drinks fill your hunger and thirst.
  • Give an item. Drag it onto Give, pick a nearby player from the list.
  • Drop an item. Drag it out of your inventory; it drops as a bag on the ground that anyone can pick up.
  • Trunks and gloveboxes. Stand at the back of a car and press K for the trunk; in the car, K opens the glovebox.
  • Stashes. Lockers, house storage, motel stashes and job stashes open next to your inventory, mostly with the third eye (hold Left Alt).
  • Shops. Shopkeepers open their shop next to your inventory. See Shops System.
  • Loot. Unlocked parked cars and dumpsters can hold random small loot.

Keys & commands

Key / commandWhat it doesWho
F2Open your inventoryEveryone
KOpen the trunk, glovebox or stash near youEveryone
TABShow the hotbarEveryone
1 to 5Use the item in hotbar slot 1 to 5Everyone
/giveitem <id> <item> <amount>Give an item to a playerAdmins
/removeitem <id> <item> <amount>Take an item awayAdmins
/viewinv <id>Look at a player's inventoryAdmins
/clearinv <id>Empty a player's inventoryAdmins

Players can change the keys in Settings > Key Bindings > FiveM.

Config options

File: server-data/oxinventory.cfg (items are listed in [ox]/ox_inventory/data/items.lua).

OptionWhat it changesExample
inventory:slotsSlots per player50
inventory:weightCarry limit in grams60000
inventory:keysDefault keys: inventory, other inventory, hotbar["F2", "K", "TAB"]
inventory:policeJobs that may use police armouries and evidence["police"]
inventory:giveplayerlistShow a list of nearby players when givingtrue
inventory:droppropsDropped items show as a bag on the groundtrue
inventory:randomlootRandom loot in cars and dumpsterstrue
inventory:clearstashesEmpty stashes nobody touched for this long"6 MONTH"
inventory:screenblurBlur the game behind the open inventorytrue

Admin Quick Test

Setup

  1. Give yourself test items: /giveitem me water 2 and /giveitem me burger 1. Expected: a small pop-up for each item.
  2. Give yourself cash: /giveaccountmoney me money 100. Cash shows as the money item in your inventory.

Your inventory

  1. Press F2. Expected: your inventory opens with 50 slots and a 60 kg limit, and the game blurs behind it.
  2. Drag one water to slot 1 and close. Press 1. Expected: you drink, one water is gone and thirst goes up.
  3. Press TAB. Expected: the hotbar with slots 1 to 5 shows.
  4. Open the inventory, right-click the burger and choose Use. Expected: you eat it and hunger goes up.

Trunk, glovebox and ground

  1. /car sultan. Sit in it and press K. Expected: the glovebox opens next to your inventory.
  2. Get out, stand at the back and press K. Expected: the trunk opens. Move the second water into it.
  3. Drag an item out of your inventory onto the ground side. Expected: a bag drops on the floor; open it and take the item back.

Shop

  1. Teleport to the 24/7 on Innocence Blvd: /tp 24.40 -1347.47 28.50. Third eye on the shopkeeper. Expected: the store opens next to your inventory, with water at $2 and burgers at $9.
  2. Buy one water with cash. Expected: $2 less cash and one more water.

Admin tools

  1. /viewinv <id> shows a player's inventory, /removeitem me water 1 takes one water away, and /clearinv <id> empties an inventory.

The end

  1. Clean up with /dv. Result: items were used, moved, dropped, bought and removed.

If it doesn't work

K opens nothing: the car is locked or you are not at the back. The player may have changed their keys in Settings > Key Bindings > FiveM.

On this page