Server/Workshop

From GMod wiki
Jump to: navigation, search

Dedicated servers can install addons straight from workshop, but it requires some configuration. The server will look in a key values file (workshop.vdf by default) and download/update/mount all of the addons in that file on startup.

workshop.vdf

Create a file in your garrysmod (orangebox/garrysmod) folder called 'workshop.vdf'. Open this in a text editor and paste the following:

"addons"
{
	"1"		"104486940"	// GM_BigCity
	"2"		"104523837"	// Innercity
}

This will cause your server to subscribe to these two addons. If you want to add more addons then follow the pattern, you can find the workshop ID of the files in the URL of the addon's page. For example, If you wanted the TTT Weapon Placer (http://steamcommunity.com/sharedfiles/filedetails/?id=119928922), then you would add the id:

"addons"
{
	"1"		"104486940"	// GM_BigCity
	"2"		"104523837"	// Innercity
        "3"             "119928922"   // TTT Weapon Placer
}

Using Different Files

You can have your server load a different workshop.vdf file by specifying the following switch:

-workshopvdf my_custom_workshop.vdf

Notice

There's a bug where the system can't download files over 64MB, Garry is aware and trying to fix it.

Personal tools
Namespaces

Variants
Actions