Server.cfg for Garry's Mod Servers

From Nitradopedia EN
Jump to: navigation, search
Garrysmod wiki.jpg
Rent your own prepaid Nitrado Game Server today at nitrado.net


This tutorial is about Garry's Mod

Basic word

In the server.cfg you set all basic settings on the server. That is, (E.g. The hostname, the (optional) password, or the RCON password If you set a "//" before a setting option, the setting is "escorted". That is, The server does not load what is behind the "//" This is as already said pretty good, in the server.cfg to add comments, so that the commands do not always googling the commands Now follows an example server.cfg which I split into two parts: "Changeable" and "Please do not rumfummeln, otherwise there are problems on the server"

Now just click on your web interface, go to the Config Editor [Extended v2], select "Garrys Mod (server.cfg)" and click on Edit Now you can copy, paste and edit the following example server.cfg to your wishes.

Sample Server.cfg

//***
//The changeable part. This is where you can change everything without having to worry about the server being smeared.
//***

// What is the name of your server? (Also displayed in the server browser)
Hostname "Your server-name"

// The RCON password is required to administer the server via the console.
Rcon_password "changeme"

// The command "sv_password" is used to set a "join password". This is helpful to leave only the desired people on the server who know the password.
// If the server should be open to all, just put a "" behind the command
Sv_password "DEINPASSWORT" // or if no password is desired: sv_ password ""

// Spawns Pro Player Settings
// All numbers in the game settings indicate the amount that can be spawned.
// If a particular thing is not to be spawned, simply set the value to "0"
"sbox_maxprops"			"150"       //Sets the maximum amount of "props" a player can have on the map
"sbox_maxragdolls"		"6"         //Sets the maximum amount of "Ragdolls" a player can have on the map
"sbox_maxballoons"		"15"        //Sets the maximum amount of "balloons" a player can have on the map
"sbox_maxeffects"		"1"         //Sets the maximum amount of "effects" a player can have on the map
"sbox_maxdynamite"		"2"         //Sets the maximum amount of "dynamite" a player can have on the map
"sbox_maxlamps"			"3"         //Sets the maximum amount of "Lamps" a player can have on the map
"sbox_maxthrusters"		"30"        //Sets the maximum amount of "Thrusters" a player can have on the map
"sbox_maxwheels"		"20"        //Sets the maximum amount of "Wheels" a player can have on the map
"sbox_maxnpcs"			"0"         //Sets the maximum amount of "NPCs" a player can have on the map
"sbox_maxhoverballs"		"10"        //Sets the maximum amount of "hoverballs" a player can have on the map
"sbox_maxvehicles"		"10"        //Sets the maximum amount of "Vehicles" a player can have on the map
"sbox_maxbuttons"		"15"        //Sets the maximum amount of "buttons" a player can have on the map

// Game settings
"sbox_plpldamage"	"0"      //"player-to-player" damage, active if the value is set to 0
"sbox_godmode"		"0"      //All players are invulnerable if value is set to 1 (ATTENTION, LIFT "sbox_plpldamage")
"sbox_noclip"		"1"      //Allows players to fly., Active if the value is set to 1

"sv_noclipaccelerate"		"5"      //Sets the flight speed of noclip
"sv_alltalk"			"1"      //If the value is 1, players can hear from opponent teams, if the value to 0 is not


//***
//DO NOT MAKE ANY MORE THAN THAT IT CAN CAUSE THROUGH PROBLEMS
//***

// Connectivity settings
"sv_minrate"         "0"         //Minimum connection speed
"sv_maxrate"         "20000"     //Maximum connection speed
"decalfrequency"     "10" 
"sv_maxupdaterate"   "66"        //Maximum tick rate
"sv_minupdaterate"   "10"        //Minimum tick rate
"net_maxfilesize"    "60"        //Maximum size of a file that servers can send (in MB)

// surgery
"sv_lan"	"0"        //The command controls whether the server is accessible via the Internet or local
"sv_region"     "255"      //Server region (for the server browser) 255 means that the server can be reached anywhere in the world

// execute ban files
Exec banned_user.cfg // This command is for all bans to be active after a mapchange/server restart

Advanced setting options

This small selection of settings was by far not all of them, you can check them here