Gmod 13 changing gamemode help

I hate to make another one of these posts, I know there’s one a bit down but it’s filled with useless information

Hey guys, I’m trying to make a private RP server for me and a couple of friends (yeah, yeah rate me dumb) and I’m finding it near impossible to change the gamemode. I’ve downloaded the latest DarkRP from here: https://github.com/FPtje/DarkRP and it won’t work.

My .bat script:



@echo off
cd c:\srcds/orangebox
echo Starting game server.
echo Beginning "Garry's Mod"
srcds.exe -console +map rp_downtown_v4c -game garrysmod +maxplayers 45 +ip 0.0.0.0 -port 27015 -gamemode darkrp
echo "Garry's Mod" has now started.
echo It is recommended that you start Server Crash Recovery aswell.

My server.cfg


hostname           "darkrp private server"
sv_defaultgamemode "darkrp"
rcon_password      "gggggg"
sbox_noclip        "0"
sbox_godmode       "0"
sbox_plpldamage    "0"
rp_toolgun         "1"
sbox_maxprops      "1000"
sbox_maxragdolls   "0"
sbox_maxeffects    "0"
sbox_maxdynamite   "0"
sbox_maxlamps      "0"
sbox_maxthrusters  "0"
sbox_maxwheels     "4"
sbox_maxhoverballs "0"
sbox_maxvehicles   "0"
sbox_maxbuttons    "20"
sbox_maxemitters   "0"
sbox_maxspawners   "0"
sbox_maxturrets    "0"


My autoexec.cfg:
log on
sv_defaultgamemode "darkrp"
sv_scriptenforcer 1

Any help is appreciated, thanks.

nvm

The “sv_defaultgamemode” is no longer in gmod I think… Try gamemode instead and if that doesn’t work try +gamemode in your .bat file.

You don’t need the gamemode in server.cfg

And yes, you would need to make it gamemode “darkrp” in the autoexec.cfg. Or whatever you have the gamemode folder named.

Ah, thank you so much. That worked.

put this in your Server.cfg or Autoexec.cfg: gamemode “yourgamemode”