Setting the default gamemode

I am trying to set Darkrp as the default gamemode yet my server keeps starting up with the sandbox gamemode. i have done

“sv_defaultgamemode” “DarkRP”
“sv_gamemode” “DarkRP”

tried that in the server.cfg, aautoexe.cfg and nothing works

I think it’s


-sv_defaultgamemode "DarkRP"

just add that to the command line.

Or you could remove the quotes
sv_defaultgamemode “DarkRP”
sv_gamemode “DarkRP”

Still doesnt work :frowning:

set…

sv_defaultgamemode “%FolderNameThatHasTheGM.LuaFiles%”

ex. in garrysmod/gamemodes/

DarkRP1
sandbox
SSbox
FortBuild

so for DarkRP (which is inside DarkRP1) the cvar would look like: sv_defaultgamemode “DarkRP1”

it still keeps starting up with sandbox

you might have another command line somewhere saying to startup with sandbox. Look thoroughly