Garry's Mod Workshop Addons

Creating a Workshop Collection

  1. Go to the Steam Workshop
  2. Create a new collection
  3. Add all the desired addons
  4. Copy the Collection ID

Loading the Collection on the Server

In the server startup command:

+host_workshop_collection <collection_id>
-authkey <steam_web_api_key>

Steam Web API Key

Required for Workshop downloads:

  1. Go to steamcommunity.com/dev/apikey
  2. Generate a key
  3. Add it as -authkey in the startup command

Automatic Addon Downloads for Players

So players automatically download addons, add the following to lua/autorun/server/workshop.lua:

resource.AddWorkshop("workshop_id_1")
resource.AddWorkshop("workshop_id_2")
resource.AddWorkshop("workshop_id_3")

Popular Addon Categories

Category Examples
Maps ttt_minecraft, ph_office
Weapons M9K Weapons, TFA Base
Playermodels PM + Playermodel Selector
Tools Wiremod, Precision Tool
HUDs DarkRP HUD, TTT HUD

Troubleshooting

  • Addon won't load: Check the Steam Web API key
  • Missing textures: Install the CSS content pack
  • Slow downloads: Trim the collection to essentials only