How to Set Up GMod Workshop Downloads for Players

Use resource.AddWorkshop for GMod player downloads. Tell addon IDs apart from collection IDs and check that custom models, sounds and textures arrive.

resource.AddWorkshop asks joining players to download an addon’s content. It does not install the addon on the server.

Find the addon IDs

Copy the number after id= from each content addon’s Workshop URL. Use individual addon IDs, not the collection ID. Lua files use a different download system.

Edit workshop.lua

  1. Open Files > garrysmod/lua/autorun/server/workshop.lua. Use New file in that folder if it is missing.
  2. Keep existing download entries. Add resource.AddWorkshop("ADDON_ID") for each content addon, replacing ADDON_ID with its numeric ID.
  3. If the file only contains resource.AddWorkshop(""), replace that empty example line.
  4. Save and restart. Check Console for Lua syntax errors.
workshop.lua — replace ADDON_ID with a numeric item ID
resource.AddWorkshop("ADDON_ID")
The real file editor at garrysmod/lua/autorun/server/workshop.lua. Replace ADDON_ID with the individual numeric Workshop item ID.

Test player downloads

Join and check custom models, sounds and textures. Workshop maps and supported Workshop gamemodes can already add downloads automatically. Add the other content players need.

If content is missing, check the ID, addon visibility, required items and both server and player console errors.

For server installation, see adding a Workshop collection. For other causes, see missing textures and ERROR models.

Troubleshooting checks

If the result is not what you expected
What you seeWhat to check
Players still see missing contentUse the individual addon ID for its client assets and include required items; the collection ID is not a substitute.
Lua error after adding a downloadCheck matching quotes and parentheses and that the file is in lua/autorun/server.

Official reference: Facepunch’s resource.AddWorkshop reference, serving content to players, the GMod egg’s workshop.lua default.

Was this article helpful?

Your feedback helps us improve our guides.

Written by Konnect HostingUpdated 2 min read