Garry's Mod

Garry's Mod

41 ratings
Adding addons to your garry's mod server
By Mr. Lightside
   
Award
Favorite
Favorited
Unfavorite
Introduction
Some of you may have read my old guide and probably complained that you don't need to do it that way ect. I did discontinue support on that but that didn't stop the raging comments so here is the new one I promised!
Server Side Installation
You are going to need your chosen addon(s) installed for this part!

First all of you need the extracted version of your addon. You can do this by finding a download link on the addon page (which most don't) or you can use GMad extractor to extract it (which is what I would recommend).

To install GMad extractor go to here [www.treesoft.dk]or google "GMad extractor download" it should be the first link! (Dead Link)

GMad extractor mirror download, (click here)[mega.nz].

Once downloaded extract the archive in to a new folder, then run "GmadExtractor.exe". Once open press "Open" then "Browse" and navigate to your Garry's Mod addon folder.

For windows this is usually:
C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\addons

once there search and select the addon you wish to extract then press on it again in the list and then "Select". Finally press the "Extract All" button, make a folder and then select it. When it has completed extracting the addon it will say "Addon extracted successfully!"

( Steam wouldn't let me upload this file so click here for the gif![i.imgur.com] )

Upload or move your folder with the extracted addon to your server's addons folder (server/garrysmod/addons) and restart your server!
FastDL (workshop)
(If the addon is purely lua and does not contain any models or textures you can skip this step)
Downloading addons from the server directly can be a slow process and make players bored on the loading screen, one way to avoid this is by setting up workshop fastdl! This is simple but can be tedious when adding lots of addons.

For the first time you do this you will need to create "workshop.lua". To do this in your server navigate to (server/garrysmod/lua/autorun/server) inhere create a lua file called "workshop". Once you have done this open the file.

To add addons to this FastDL is simple from here. For every addon you add to fastdl create a line in the file and write out the following:
resource.AddWorkshop("ID") -- Addon Name

ID is the workshop ID of the addon find this after the url. Example:

All the numbers after "?id=" is the ID
And after "--" is the addon name to keep things tidy in our code.

So for the example wiremod would look like this:
resource.AddWorkshop("160250458") -- Wiremod

The Collection
(If the addon is purely lua and does not contain any models or textures you can skip this step)
Your going to want to add your chosen addon to a collection. Why? This is so if the addon does not download you can tell the player to go to your collection and download it also so you can keep track of your addons.

First of all navigate via steam to "Community -> Garry's Mod -> Workshop" once there go to collections and create collection.
Once you are on the create collection page fill out all the information as needed. You must add your addons to the collection. Your collection must be published in order for players to download it!
Conclusion
Thanks for reading I hope it helped! I understand there may other way of doing this but this is the best way in my opinion, please leave feedback and I will try to help you with any problems and suggestions welcome!

30 Comments
elapt1c 28 Dec, 2023 @ 7:25pm 
lua/autorun/workshop.lua:1: attempt to call field 'AddWorkshop' (a nil value)
1. unknown - lua/autorun/workshop.lua:1
fallen_Angel 27 Nov, 2020 @ 8:48am 
@Okami amaterasu it dosent work for me either
Fang Winters 27 Mar, 2019 @ 8:56am 
Why can't I see the addons in game
eidod23 14 Mar, 2019 @ 8:11pm 
i tried just unsubbing from my collection but it doesn't work
eidod23 14 Mar, 2019 @ 8:10pm 
how do u remove addons
Infused With Power 20 Jan, 2019 @ 10:47pm 
guy was downloading at 20kb for 30 mins.. and I was thinking it would magically know what to do
I just slapped my head into infinite
SandPoot 31 Aug, 2018 @ 5:21am 
Fluffles
"+Tankfird Yes, gmad.exe is also located in the Garry'sMod bin folder. For simplicity of the tutorial Ill just leave it as the program version."

Actually if you right-click a .gma file and click "open with" and choose gmad.exe it's very faster
greenygreeny 26 Aug, 2018 @ 6:16pm 
+CryBaby A paid server is a dedicated server, Check if you followed the steps correctly.
Maxpowerammo 27 Mar, 2018 @ 3:53pm 
If I run a server that changes maps often, is there a way for the client to download only the current map? Or do I have to put all maps in the workshop.lua and have them wait it out while they all download?
Boneelesss 12 Feb, 2018 @ 4:24pm 
Is this the same if its a bought server and not dedicated?
Im trying to setup FastDL for my server that I am paying for and I cant figure out how.