Garry's Mod

Garry's Mod

ISAWC: Inventory System and Working Containers
 This topic has been pinned, so it's probably important
Piengineer12  [developer] 12 Jan, 2022 @ 6:30am
Frequently Asked Questions
I've figured that some questions have been asked frequently enough that I should post a discussion topic about it.

How do you configure ISAWC?
The main way to configure ISAWC is via the console. Type isawc_help to view the list of available commands (ConCommands) and variables (ConVars).

To view all server options, use the isawc_activate_options_menu_server ConCommand. Players are able to access their per-player settings via the isawc_activate_options_menu_client ConCommand.

How do I pick up items?
At default settings, hold F for one second to pick up items. You can also use the context menu right click property to pick up items.

Since F is also the default key for the flashlight, you should probably change it to something else.

How do I change the key to pick up items?
In Sandbox, you can configure the options in the Client section within the ISAWC section at the top-right of the spawnmenu. Otherwise, you have to change the ConVars "isawc_pickup_bind" and "isawc_player_bind".

How do I make containers always accessible to all players?
Set "isawc_container_alwayspublic" to 1. You can also set the ConVar to 2 which will make players only be able to open containers owned by a player on the same team.

How do I make containers save their inventory?
Typically, containers will already have their inventory saved, as the entity metadata is stored in the container entity table itself.

Nonetheless, you can adjust the "isawc_container_save" ConVar in the server console to make containers save their inventories into sv.db, so that the container will also save and load their inventory to and from the database file, so long as the container File ID is preserved. Please note that this feature is in beta, use it at your own peril.

Why are there containers that players drop on death?
Whenever a player dies, a container with the player's inventory (including weapons) will be spawned at the player's position. This container will belong to the world rather than any specific player.

What is an item stamp?
An item stamp is a serializable factory of an item that persists between map changes and server restarts. Item stamps are actually internal duplications, which allows copies of an item to be created even when no copies currently exist in the map. As an administrator, you can create an item stamp from an item with the isawc_stamps_create ConCommand, and create an item from an item stamp with the isawc_stamps_restore ConCommand.

How do I attach loot tables to a container?
You need to use the Loot Attacher SWEP after creating a loot table.
Last edited by Piengineer12; 2 Mar, 2024 @ 12:30am
< >
Showing 1-3 of 3 comments
kuz-(kuz) 30 May, 2024 @ 8:08pm 
Is this addon abandoned?
Piengineer12  [developer] 1 Jun, 2024 @ 2:34am 
no, but updates are currently taking longer to finish than normal
Hi, when can you go back to updates and finally make Inventoy checker? It would be extremely important and useful(Google Translate)
< >
Showing 1-3 of 3 comments
Per page: 1530 50