Garry's Mod

Garry's Mod

335 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].

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, 2024 @ 10:43am
My items didn't spawn when I dropped them
Gvbavx
3
29 Feb, 2024 @ 5:34pm
how to use the backpacks
Spo0ds
2
1 Jun, 2024 @ 2:34am
PINNED: Frequently Asked Questions
Piengineer12
1,209 Comments
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.
Arkadaş Taşevladı 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
Arkadaş Taşevladı 17 Jan @ 7:33am 
Last question: i want to use database saving but i want to use MySQL instead of sqlite because i encountered alot of out of memory issues when making my server. does this addon support MySQL natively or through GmodAdminSuite?
Piengineer12  [author] 16 Jan @ 11:47pm 
If you're able to open the SQLite database, all tables created by this addon under sv.db start with "isawc_", for example "isawc_player_data" holds every players' inventories.
Arkadaş Taşevladı 16 Jan @ 10:59am 
btw whats the best way to delete this addons data from sv.db without losing settings made to the addon.
Piengineer12  [author] 16 Jan @ 9:03am 
All ConCommands for manipulating item stamps are prefixed with isawc_stamps_, check those out.

Really late answer, but higher weight in loot tables simply makes it more likely to be selected.
Arkadaş Taşevladı 15 Jan @ 12:55pm 
Hey dude hope you are doing well i just wanted to ask if there is a way i can clear stamp list through console? İ found a way to edit every white/black list through console but i cant find a way to do that for stamps. İt is important i do it through console because i added a stamp wrong and now the stamp menu wont open please advise.
marcina15 25 Dec, 2024 @ 12:31pm 
what does weight do in loot tables?
Heavy 8 Dec, 2024 @ 2:34am 
when trying to opem the server settings
Heavy 8 Dec, 2024 @ 2:34am 
[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 (x3)