Forcing people to download workshop addons


Steps to force players to download workshop addons.
Step 1: Log into your Controlpanel .
Step 2: View your game service.
Step 3: Open the File Manager.
Step 4: Navigate to the garrysmod > lua > autorun folder.
Step 5: If it does not already exist, create a folder in this directory named 'forceaddon'. Go into this directory.
Step 6: Create a new file named workshop.lua. Ensure this file is located in 'garrysmod/lua/autorun/server'. ( Make sure this is lowercase! )
Step 7: Open the file in the text editor (click the pencil icon next to the file).
Step 8: For every addon that you want the client to download, place the following: resource.AddWorkshop(workshopidhere). Replace 'workshopidhere' with the addon's workshop ID. This can be found at the end of the URL (numeric value).

Let's take a look at an example. We have the following 3 addons, all M9K weapon packs:
So, we have 3 IDs we will be working with; 128089118128093075 and 128091208

We will want the contents of the workshop.lua file to look like this:
resource.AddWorkshop(128089118)
resource.AddWorkshop(128093075)
resource.AddWorkshop(128091208)
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Extracting workshop addons

To extract a specific garry's mod workshop addon and view it's files, you can use a number of...

Accessing my new server?

After your first invoice payment is paid, and one of our team accept your order, your server will...

Changing your gamemode

Login to the Controlpanel and navigate to the desired server. Once the service is found, click...

How to use FTP

In this article we will explain how to use FTP on the TCAdmin Panel, as well as through a FTP...