FANDOM

Welcome to Garry's Mod Answers. What would you like to know?

This function can be activated via the Garry's Mod Dedicated Server Console, or the user (that is hosting the server)'s developer console.

User-hosted games Edit

This server type requires the sv_cheats cvar set to 1, rather than the default 0. By default this function is disabled, and can be enabled by gmod Options > Keyboard > Advanced > Enable Developer Console. Open the console by pressing the `/~ key under the esc key. Below is the sv_cheats command that should be executed:

sv_cheats 1

The command that enables the ability to kill other players without changing other user's gamemodes or needing a custom server gamemode is the below command.

sbox_godmode 0

The above command (by default set to 1) enables user invincibility to other users, not NPCs and non-user controlled weapons.

Garry's Mod Dedicated Servers Edit

This server type involves the dedicated server console being opened and executing

sbox_godmode 0

Editing server.cfg Edit

Sometimes neither of the above server types accept this change as regal, and that requires editing the server.cfg file for gmod. Below is an example of a cfg file generated by the gmod-servercfg generator utility with a slight addon made to it.

//Garry's Mod server.cfg - Autogenerated with http://robinschoors.com/?p=244
logging          	on
hostname         	"Garry's Mod"
rcon_password    	""
sv_password      	""
sv_region        	255
sv_lan           	0
sv_logbans       	1
sv_logecho       	1
sv_logfile       	1
sv_log_onefile   	0
sv_noclipspeed   	5
sv_noclipaccelerate	5
//Sandbox Settings
sbox_allownpcs  	1
sbox_godmode     	0
sbox_plpldamage  	0
sbox_playergod   	0
sbox_noclip      	1
sbox_maxprops    	150
sbox_maxragdolls 	5
sbox_maxnpcs     	10
sbox_maxballoons 	10
sbox_maxeffects  	50
sbox_maxdynamite 	10
sbox_maxlamps    	20
sbox_maxthrusters	30
sbox_maxwheels   	20
sbox_maxhoverballs	20
sbox_maxvehicles 	6
sbox_maxbuttons  	20
sbox_maxsents    	20
sbox_maxemitters 	5
sbox_maxspawners 	3
sbox_maxturrets  	2
//Server Settings
net_maxfilesize  	30
sv_minrate       	0
sv_maxrate       	2500
decalfrequency   	10
sv_maxupdaterate 	66
sv_minupdaterate 	10
//Execute ban files
exec banned_ip.cfg
exec banned_user.cfg

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.