Tutorial / Settings
Backpack & Storage
Set up every player's backpack, the hotbar, Hands and storage containers: slots, what fits, and what happens on death.
What it does
The backpack is every player's inventory. It holds weapons (with their clip ammo), ammo and items such as health kits. Loot from storage containers goes into it, and money goes to the wallet.
This page also controls the hotbar and Hands. The hotbar is ten slots at the bottom of the screen that replace the weapon selection. Only weapons on it can be used, and players set it up in the backpack window.
The last section turns storage containers on or off and sets how they look. Containers themselves are made in World > Storage and World > Loot Tables.
Where to find it
Q menu > KGX's Admin Toolbox > Settings > Backpack & Storage.
Anyone can open the page. Only superadmins can change the settings.
Players open their backpack with the B key, !backpack, !bp, the console command kgxat_backpack_open, or (for players) the C menu's ATB window, Me tab > Backpack. The key can be changed in Settings > Keybinds.
The panel
Checkboxes and the drop-down apply at once. The three sliders apply when you click Apply the numbers above at the bottom of the page. The blacklist has its own Apply the list button.
Backpack
| Option | What it does | Default |
|---|---|---|
| Backpacks on | Master switch for backpacks. | On |
| Slots | Slots per backpack. | 10 (1-60) |
| Ammo rounds per slot | More of the same ammo uses another slot. | 250 (10-9999) |
| Can hold weapons | Weapons may go in the backpack. | On |
| Can hold ammo | Ammo may go in the backpack. | On |
| Can hold items (health kits, batteries, entities) | Items may go in the backpack. | On |
| Keep backpacks when players leave and across restarts | Saves backpacks per SteamID. | On |
| When a player dies | Keep the backpack, Drop it as a bag anyone can loot, or Lose everything in it. | Keep the backpack |
| Dropped bag stays (minutes) | How long a dropped bag stays before it disappears. | 5 (1-60) |
| Never storable (weapon/item classes, comma separated) + Apply the list | Classes that can never go in a backpack, e.g. weapon_rpg, gmod_tool. |
empty |
Hotbar
| Option | What it does | Default |
|---|---|---|
| Hotbar on (replaces the weapon selection) | Ten slots, keys 1-9 and 0 and the mouse wheel. | On |
| A weapon that does not fit on the hotbar goes into the backpack (if it has room and no weapon of that kind) | Overflow goes to the backpack. | On |
| Everyone carries Hands (nothing in hand; hotbar slot 1 unless moved) | Hands for every player. | On |
Storage containers
| Option | What it does | Default |
|---|---|---|
| Storage containers on | Containers can be opened. | On |
| Containers with loot glow when you are close | Glow for containers that have loot for you. | On |
| Show container names above them | Names (and Empty) float above containers. | On |
| Apply the numbers above | Sends Slots, Ammo rounds per slot and Dropped bag stays (minutes). |
How to use it
Give players bigger backpacks
- Open Settings > Backpack & Storage as a superadmin.
- Move Slots to the size you want.
- Scroll down and click Apply the numbers above.
Make backpacks lootable on death
- Set When a player dies to Drop it as a bag anyone can loot.
- Set Dropped bag stays (minutes) and click Apply the numbers above.
Stop a weapon being stored
- Type the class in Never storable (weapon/item classes, comma separated), for example
weapon_rpg. - Click Apply the list.
Check or clean a player's backpack
- Open the Player Manager and choose Backpack > View backpack on the player.
- Select an item and click Remove selected item.
- To clear it all, choose Backpack > Empty backpack... and confirm.
Settings and commands
| Setting or command | What it does | Default | Range |
|---|---|---|---|
kgxat_backpack |
Backpacks on | 1 | 0-1 |
kgxat_backpack_slots |
Slots | 10 | 1-60 |
kgxat_backpack_stack |
Ammo rounds per slot | 250 | 10-9999 |
kgxat_backpack_weapons |
Can hold weapons | 1 | 0-1 |
kgxat_backpack_ammo |
Can hold ammo | 1 | 0-1 |
kgxat_backpack_items |
Can hold items | 1 | 0-1 |
kgxat_backpack_persist |
Keep backpacks across visits and restarts | 1 | 0-1 |
kgxat_backpack_death |
0 keep, 1 drop as bag, 2 lose | 0 | 0-2 |
kgxat_backpack_bag_minutes |
Dropped bag minutes | 5 | 1-60 |
kgxat_backpack_blacklist |
Never storable classes | empty | text |
kgxat_hotbar |
Hotbar on | 1 | 0-1 |
kgxat_hotbar_overflow |
Overflow into the backpack | 1 | 0-1 |
kgxat_hands |
Everyone carries Hands | 1 | 0-1 |
kgxat_storage |
Storage containers on | 1 | 0-1 |
kgxat_storage_glow |
Container glow | 1 | 0-1 |
kgxat_storage_labels |
Container names | 1 | 0-1 |
!backpack, !bp, kgxat_backpack_open |
Open your backpack |
Tips and limits
- v3.6.15: during a Game Modes match the backpack is closed and nothing goes into it (the hotbar keeps an 11th weapon in hand), so match weapons cannot leave the match.
- Admins keep their backpack on death unless Settings > Economy > Admins also drop money and their backpack when they die is ticked.
- Deaths during a Game Modes match take nothing from the backpack.
- Backpacks are saved per SteamID in
data/kgx_admin_toolbox/backpacks.json. - Typed slider values are not sent until you click Apply the numbers above, which sits below the storage checkboxes.