Garry's Mod

Garry's Mod

ISAWC: Inventory System and Working Containers
 此主题已被置顶,因此可能具有重要性
Piengineer12  [开发者] 2022 年 1 月 12 日 上午 6:30
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.
最后由 Piengineer12 编辑于; 2024 年 3 月 2 日 上午 12:30
< >
正在显示第 1 - 3 条,共 3 条留言
kuz-(kuz) 2024 年 5 月 30 日 下午 8:08 
Is this addon abandoned?
Piengineer12  [开发者] 2024 年 6 月 1 日 上午 2:34 
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)
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50