Garrysmod:How to make players download from workshop

From Serenity Servers Support

Garry's Mod is using the workshop for addons now, while this is great it for installing addons on a server, it has also made it easier to send addons for the client to download.
NOTE: This is not the same as fast download, click here to see how to use our automatic fast download.

You can now use this tool, and enter the ID of your collection into the left hand side.
http://www.configcreator.com/create/gmod/resources.lua

  1. Login to the contol panel, and enter the page for your service.
  2. Enter the configuration files, and enter the workshop.lua file.
  3. Now you need to go back into the workshop, and get the ID from all the addons you want sent to the client. This could be models, sounds etc. ULX and other script based addons do NOT need to be added.
  4. Once you gather the infomation, add the ids as shown below. One addon, per line.
    Resourceworkshop.png
  5. After saving, simply restart your server and it should take effect.

Here is an example, in this case we force all TDM cars to be downloaded when a new player connect.

-- The lines starting with -- are comments, but its a good idea to describe what addon the ID leads to.
-- Begin TDM Car downloads --
-- Source http://steamcommunity.com/id/TheDanishMaster/myworkshopfiles/
resource.AddWorkshop( "112606459" ) -- Base Pack
resource.AddWorkshop( "349281554" ) -- Emergency pack
resource.AddWorkshop( "303809753" ) -- Shelby 1000
resource.AddWorkshop( "286998866" ) -- Volvo
resource.AddWorkshop( "272988660" ) -- Vauxhall
resource.AddWorkshop( "266504181" ) -- Subaru
resource.AddWorkshop( "261961088" ) -- Scion
resource.AddWorkshop( "259899351" ) -- Porche
resource.AddWorkshop( "254930849" ) -- Pagani
resource.AddWorkshop( "234464092" ) -- Holden
resource.AddWorkshop( "233934024" ) -- Mazda
resource.AddWorkshop( "230680318" ) -- Land rover
resource.AddWorkshop( "226435666" ) -- Kia
resource.AddWorkshop( "225810491" ) -- Multibrand
resource.AddWorkshop( "224183198" ) -- Jeep
resource.AddWorkshop( "221198333" ) -- Hummer
resource.AddWorkshop( "217264937" ) -- McLaren
resource.AddWorkshop( "215871671" ) -- Traiker Pack
resource.AddWorkshop( "209683096" ) -- Honda
resource.AddWorkshop( "195481065" ) -- Murica Truck pack
resource.AddWorkshop( "176984840" ) -- Chrysler
resource.AddWorkshop( "131246684" ) -- Mercedes
resource.AddWorkshop( "131245637" ) -- Toyota
resource.AddWorkshop( "131243694" ) -- Mitsubishi
resource.AddWorkshop( "126921199" ) -- Aston Martin
resource.AddWorkshop( "126920533" ) -- Cadillac
resource.AddWorkshop( "123456202" ) -- Volkswagen
resource.AddWorkshop( "123455885" ) -- Nissan
resource.AddWorkshop( "123455501" ) -- Mini
resource.AddWorkshop( "120766823" ) -- GMC
resource.AddWorkshop( "120765874" ) -- Hudson
resource.AddWorkshop( "119148996" ) -- Ferrari
resource.AddWorkshop( "119148120" ) -- Lamborghini
resource.AddWorkshop( "119146471" ) -- Bugatti
resource.AddWorkshop( "114001545" ) -- Dodge
resource.AddWorkshop( "114000337" ) -- Citroen
resource.AddWorkshop( "113999373" ) -- Ford
resource.AddWorkshop( "113997239" ) -- Chervrolet
resource.AddWorkshop( "113120185" ) -- Audi
resource.AddWorkshop( "113118541" ) -- BMW
-- End TDM Car downloads --


-- Add more if need be.
resource.AddWorkshop( "" ) -- 
resource.AddWorkshop( "" ) -- 

Banner
Promo