Default gamemode help

I know im missing something really obvious here. In my server.cfg I have my sv_defaultgamemode or whatever it is, but the server always starts on sandbox, and changes to my set default after I change map. What am I forgetting that is stopping it starting on my default gamemode?

U cant, if u put it in sv_gamemode “” and sv_defaultgamemode “” in cfg. u will still have to restart the map.

I’m not sure if that will also help, but try also put in cfg

sv_gamemodeoverride = “gamemode_name_here”