How to apply gamemode?

I just started a gmod server, but all I can get to work on it is sandbox. How do I make it a literp server

sv_gamemode <gamemode_name>
sv_defaultgamemode <gamemode_name>

If you want it perm, put that in the game.cfg file.