Navigation

Knowledgebase

Force Downloading of Addons on your Garry's Mod Server

Last updated: 04/18/19
written by  Nodecraft Staff

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:

Open the garrysmod Folder,

Then open the lua folder,

Then open the autorun folder

Garrys_Mod_ForceDownload_lua_autorun

2. Find or Create a server Folder:

Inside the garrysmod/lua/autorun folder, look for a folder labelled server.

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.

Open the server folder

3. Create workshop.lua File inside the"server" Folder:

Once you are in the server folder, Use the create file button in the file manager view to open up a text editor.

Garrys_Mod_ForceDownload_create_file_circled

Garrys_Mod_ForceDownload_name_file1

Click on the grey text eg.my-file-name.txt, and replace it with workshop.lua

Garrys_Mod_ForceDownload_name_file2

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 workshop.lua File:

When you're finished, click the save button.

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 workshop.lua file.

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.

Can't find answers to your questions?

Feel free to contact our support team for personal and professional help.

Write Articles, Get FREE Servers!

More information coming soon.

Chat blocked!

Nodecraft is an ad-free website! Disable adblock if you have any questions.