Garry's Mod

Garry's Mod

320 ratings
ISAWC: Inventory System and Working Containers
2
3
3
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
797.089 KB
4 Mar, 2019 @ 4:35am
13 Jun @ 7:20am
156 Change Notes ( view )

Subscribe to download
ISAWC: Inventory System and Working Containers

Description
This is my idea of an inventory system where you can pick up any entity and store it in your inventory or a container for later use. All entities that do not break when duplicated are supported by this addon.

All players' inventories are saved within sv.db while ConVars and lists are saved in data/isawc_data.dat. You can save the containers' inventories just by saving the map.

All Minecraft assets belong to Mojang AB. I do not own any of them.

Features
Console
- There are many ConVars and ConCommands in this addon, all starting with "isawc_". Type "isawc_help" to view all of them.
- You can use the ConCommands starting with "isawc_activate_options_menu_" to open a more intuitive GUI interface for configuring this addon.

Inventory System
- Non-grid based.
- Amount of space all players have can be modified.
- Any entity can be picked up, as long as the entity is compatible with the Duplicator tool. (A ConVar can be enabled for non-physical entities to be picked up.)
- Range for automatic entity pickup can be configured.
- Bindings can also be configured, see the notifications displayed on spawn to learn how.
- Entities that shouldn't be picked up can be blacklisted. There are also ConVars and ConCommands to enable and manipulate whitelists.
- ConVar to control the maximum distance entities can be picked up from.
- Whole inventories can be dumped into a small box unless disabled.
- Currently held weapons can be stored unless disabled.
- Ammo on a player can be turned into inventory items via item stamps.
- Player inventories are saved by default, this can be controlled with ConVars.
- ConVar to cause players to drop their inventory on death.

Items
- All items have mass and volume. Space occupied by any entity can be modified.
- Additional tooltips and custom images can be defined for picked up items.
- Picked up items can be deleted unless disabled.
- Administrators can save items as item stamps, which can be restored infinitely, regardless of map, until deleted.
- Ammo from weapons can be removed inside an inventory, giving the ammo to the player.

Containers
- Huge array of containers from props of the Half-Life 2 series.
- Custom containers can be made with a special admin-only SWEP.
- 100% save and dupe compatible. You can put containers in containers.
- Range for automatic entity pickup can be configured.
- Containers can be made breakable.
- Containers can be made personal, such that each player will have their own inventory on the same container.
- Containers can be synchronized with other containers. All synced containers will always share the same inventory.
- Highly configurable loot table system, loot tables can be attached to containers using a special SWEP.

Others
- Inventory Exporter, to get items out of containers.
- "Weighing" Scale, to measure how much mass and volume an entity will occupy in an inventory.

Need more models? I've tried to convert some models into backpacks/containers from these addons:
Unofficial Minecraft Model Pack
TDMCars - Trailer Pack
FO3 Backpacks
Simply enable the relevant addon to add additional models.



If you have any suggestions, bug reports, requests or questions, you can feel free to comment down below. I'm pretty attentive towards the comment section, but try to at least read the Frequently Asked Questions discussion before commenting.

Finally, you can find the source code of this addon on my GitHub Repository[github.com].

If you like my work, you now have the option to donate on Ko-fi[ko-fi.com] so that I can keep working for another day. Every little bit helps!
Popular Discussions View All (4)
3
16 Jun @ 10:43am
My items didn't spawn when I dropped them
Gvbavx
3
29 Feb @ 5:34pm
how to use the backpacks
Spo0ds
2
1 Jun @ 2:34am
PINNED: Frequently Asked Questions
Piengineer12
1,187 Comments
PalestoGame 11 Jul @ 4:05am 
I'm getting an error like this, please help:

[ISAWC: Inventory System and Working Containers] lua/autorun/isawc_base.lua:8185: attempt to call a nil value
1. unknown - lua/autorun/isawc_base.lua:8185
ColorReef 6 Jul @ 8:51pm 
Genuinely the best inventory system. So underrated. I wish only good things for the creator and the future of this addon!
Vladimir4757 24 Jun @ 11:01am 
I had to set the save mode to on pickup so that it would save the inventory when I pick up and now the inventory is carrying over
Piengineer12  [author] 18 Jun @ 8:42pm 
That is strange, inventory saving works fine on my end. I'll have to look into it again at some point, perhaps some sort of race condition is causing problems.
Vladimir4757 18 Jun @ 11:14am 
When I load a new map my inventory is empty even though it had several items on the last map and I verified that isawc_player_save is set to 1
Piengineer12  [author] 18 Jun @ 10:09am 
You mean for players to keep their inventory across maps? You can set the ConVar "isawc_player_save" to 1 for that.
Vladimir4757 18 Jun @ 9:15am 
Is there a way for backpack inventory to persist across maps?
OH! The server option menu is working now
Thank you.
Piengineer12  [author] 13 Jun @ 9:03am 
here's the list:
isawc_player_massmul
isawc_player_volumemul
isawc_player_maxcount
isawc_container_massmul
isawc_container_volumemul
isawc_container_maxcount
isawc_pickup_massmul
isawc_pickup_volumemul
isawc_pickup_countmul
isawc_masslist
isawc_volumelist
isawc_countlist
isawc_player_usergroupmassmullist
isawc_player_usergroupvolumemullist
isawc_player_usergroupcountmullist
isawc_use_disabledmass
isawc_use_disabledvolume
isawc_use_disabledcount