Garry's Mod

Garry's Mod

349 ratings
ISAWC: Inventory System and Working Containers
3
3
3
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
798.078 KB
4 Mar, 2019 @ 4:35am
2 Aug @ 5:08am
157 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].
Popular Discussions View All (5)
3
16 Jun, 2024 @ 10:43am
My items didn't spawn when I dropped them
Gvbavx
3
17 Apr @ 11:21am
PINNED: Frequently Asked Questions
Piengineer12
3
29 Feb, 2024 @ 5:34pm
how to use the backpacks
Spo0ds
1,226 Comments
InvLab 1 Aug @ 12:46am 
And
[ISAWC: Inventory System and Working Containers] lua/autorun/isawc_base.lua:8163: no such table: isawc_item_stamps
1. error - [C]:-1
2. SQL - lua/autorun/isawc_base.lua:5919
3. RestoreItemStamp - lua/autorun/isawc_base.lua:8163
4. ReceiveMessage - lua/autorun/isawc_base.lua:7569
5. func - lua/autorun/isawc_base.lua:7862
6. unknown - lua/includes/extensions/net.lua:34
while storing ammo.
Maybe the recent Gmod updates broke them?
InvLab 1 Aug @ 12:40am 
] isawc_activate_options_menu_server

[ISAWC: Inventory System and Working Containers] lua/autorun/isawc_base.lua:4159: no such table: isawc_item_stamps
1. error - [C]:-1
2. SQL - lua/autorun/isawc_base.lua:5919
3. GetClientToOpenOptionsMenu - lua/autorun/isawc_base.lua:4159
4. unknown - lua/autorun/isawc_base.lua:1764
5. unknown - lua/includes/modules/concommand.lua:54 (x2)
CommonSay 7 Jul @ 10:01am 
Looks like it's only custom containers that're bugged with MMM
CommonSay 7 Jul @ 6:03am 
Also, if I enable "use constants", player inventories become immutable in their stats
CommonSay 6 Jul @ 4:26pm 
How do I save a container to the map? I've tried using Modest Map Manipulator, and Permaprops, but upon reloading, both just turn the container into a melon without the properties of the original container.
Piengineer12  [author] 21 Jun @ 12:22am 
I haven't seen why it wouldn't be.
ddfarmer03 20 Jun @ 4:06pm 
is this compatible with your other addon insane stats?
Piengineer12  [author] 12 Jun @ 4:51am 
You press the Use key (which is E by default) to open a container, which means that the container itself must be a solid object.
Vladimir4757 12 Jun @ 4:33am 
Stupid question but its been so long how do I loot containers? I see there are items in the container but I cannot loot the container. isawc_container_alwayspublic is set to 1. If i use the pickup button it instead picks the container up. Pressing E does nothing at all. I opens up my inventory.
Oh, I'm sorry. I hope someday you will get together and do everything!