This guide will show how to setup your Garry's Mod server so that players who join will automatically start downloading the same Steam Workhop addons that you have added to your Workshop Collection on the server.
1. Go to the Lua/Autorun Folder on your Gmod Server:
Then open the
Then open the
2. Find or Create a
garrysmod/lua/autorun folder, look for a folder labelled
If you don't see this folder, you will need to create it by clicking the
create folder button, and enter
server as the name of the folder.
workshop.lua File inside the
Once you are in the
server folder, Use the
create file button in the file manager view to open up a text editor.
Click on the grey text
eg.my-file-name.txt, and replace it with
In the lower window, on line 1, place the following line
resource.AddWorkshop( ID Number )
in between the parenthesis, you need to place the Steam Workshop ID number for each individual addon in your Steam Workshop Collection.
Each separate addon requires it's own line. Just keep adding extra lines below the first.
Only the individual ID numbers for the addons will work here, you cannot place a entire Steam Workshop Collection
4. Save the
When you're finished, click the
If everything has been done correctly, any players who connect to the Garry's Mod Server will start downloading the same addons you listed in the
Please be aware that if you have a very large collection, the players will have to finish downloading them all before they can finish connecting to the server.