Garry's Mod

Garry's Mod

342 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
797.089 KB
4 Mar, 2019 @ 4:35am
13 Jun, 2024 @ 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].
Popular Discussions View All (4)
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,217 Comments
Oh, I'm sorry. I hope someday you will get together and do everything!
Piengineer12  [author] 17 Apr @ 10:57pm 
I honestly don't know. Not only have I lost my motivation, but this addon is now very hard to maintain without introducing new bugs because of the mistakes I've made in the past.

This needs to be rebuilt from the ground up, I feel miserable just by looking at what I've written for this.
джамбо харламик 17 Apr @ 11:21am 
Hi, when can you go back to updates and finally make Inventoy checker? It would be extremely important and useful(Google Translate)
hdticket 13 Apr @ 4:52am 
Could you possibly add a system in which other players can search you?
SpicyWaterV1 12 Apr @ 10:49pm 
Hey, was just looking for some help with creating a loot tables for a container, couldnt figure out how to use the Loot Attacher SWEP and couldn't find anything linked here, thanks and great addon!
Sexdarva (Ciel) 6 Apr @ 1:01am 
I can't convert ammo (even base hl2 ones) into entities
🌟 JacobBoi123 🌟 16 Mar @ 1:42pm 
Nevermind, it works lol.
🌟 JacobBoi123 🌟 16 Mar @ 1:34pm 
@Piengineer12

The container/backpack maker isn't working for me. I can make the containers and backpacks, but the GUI won't work for me.
Piengineer12  [author] 17 Jan @ 8:28am 
I have not heard of any way for GMod to interface with MySQL nor do I know what GmodAdminSuite is, so this addon probably doesn't.

Player inventories are already saved when players disconnect when "isawc_player_save" is 1, so you can just set "isawc_player_savedelay" to something like 1000000000 so that the periodic saving part doesn't happen, only disconnect saving.
FrostbitTe 17 Jan @ 7:42am 
also i want players inventories to be saved when they disconnect but i dont want periodic saving any way i can do that? sorry for bothering you so much