How To Add Your Steam Workshop Collection Into Your GMod Server
HOW TO CREATE A WORKSHOP COLLECTION FOR GARRY'S MOD
Creating a Workshop Collection and adding it to your server is a simple process.
To begin with, you'll need to create a workshop collection.
Navigate to the Garry's Mod workshop and click "Browse" followed by the "Collections" Tab:
From there you want to click 'Create Collection':
From there you'll be presented with the following:
Fill out all the information with whatever you like and click on 'Save and Continue' when you're done.
From there you'll be asked to choose some workshop items to add to the collection, navigate to the 'Subscriptions' tab and choose any addon you're subscribed to, you can add to the collection later as you please. Click "Save and Continue" once you're happy.
Finally, you'll be asked if you would like to add a background image, you can upload one of if you have one, otherwise click 'I'm done editing' to finalize the collection. (You can edit everything including the background after creation.)
You now have a workshop collection you can add to as you wish!
If you wish to add an addon to the workshop, find an addon you like, and click the 'Add to collection' button:
Click the box beside the name of your collection, and click "OK" to add it!
ADDING A WORKSHOP COLLECTION TO YOUR SERVER
Once you have a workshop collection made, you can begin the process of adding it your server. To begin with, navigate to your main game panel
You want to find and click into "Configuration":
Then you want to click 'Startup Parameters':
From here you'll be shown various options for your server, however we want to focus on "Workshop ID":
To get our workshop ID, we go to our workshop collection, and click on the 'Share' button:
At the end of the URL you want to copy the numbers before "id="
Once you have the ID copied, you simply paste it inside the "Workshop ID" field inside our startup parameters above, and it will be added to the server!
ADDING A WORKSHOP COLLECTION TO YOUR GARRY'S MOD SERVER VIA WORKSHOP.LUA*
There is one final method you can use to guarantee that your workshop collection is added to the server, to do this we will create a lua file inside our server files to force the server to download the addons.
To begin, navigate to your game panel and click on "file management."
From there, navigate to garrysmod/lua/autorun and create a file called workshop.lua
After this, head to: https://csite.io/tools/gmod-universal-workshop and paste your collection ID we used above into the fields. Copy the code output in 'Generated Code' field below:
Paste this code into your workshop.lua file and save it.
Example of workshop.lua file filled out:
Once this file has been saved, the server should force people to download the workshop collection when joining regardless of if they're subscribed to it or not!
Published on: 10 / 07 / 2020