Add Workshop Download To a Garry’s Mod Server

Add Workshop Download To a Garry’s Mod Server

Do you have a unique idea for a Garry’s Mod Server but not the technical skills to make it happen? My Garry’s Mod Server tutorials will guide you through your difficulties. The series will include both Windows and Linux. I will help you explain how to install addons, maps and models. Setting up workshop download will be no issues for you and you might even understand how to upload your own later down the path.

In this tutorial I am going to cover Steam Workshop Download for Garry’s Mod. The steps are made from a Windows perspective but Linux should not have big differences. The tutorial works for both own-hosted servers and rented server from Game Server Providers. You can use the tutorial in both video and written format. However, if you have difficulties understanding the different steps I recommend you to use both.

Let’s get started.

Workshop Collection

Create a Workshop Collection by clicking here: https://steamcommunity.com/workshop/editcollection/?appid=4000

Add Content

Add content from the Steam workshop to your newly created workshop collection.

Link the collection to the server

Right click on your start.bat file, select edit.

In the end of the file write:

+host_workshop_collection WORKSHOPID


Copy the collection ID and replace “WORKSHOPID” with it.

You find the collection ID in the end of the collection URL.

e.g. https://steamcommunity.com/sharedfiles/filedetails/?id=1432424694

Save the file

Make clients download the content

Go to

Your-Gmod-Server-Folder/garrysmod/lua/autorun/server


Right click in the folder and select

New -> Text Document

Enter:

resource.AddWorkshop( “ID” )

for each item in your collection.

Copy the item ID and replace “ID” with it.

You find the item ID in the end of the item URL.

e.g. https://steamcommunity.com/sharedfiles/filedetails/?id=973145750


Save the document:

File -> Save As…

Saves as Type: All Files

File name: server.cfg

You are done!

Now just double-click the start.bat to start the server.

Leave a Reply

Close Menu