Preset password for listen server

Any ideas how to do this?

Editing the cfg file and adding

  sv_password "ass"

doesn’t do anything, in fact after loading and closing gmod that line of text appears to have vanished.

This must be pretty simple, I just couldn’t seem to find anything on it.

Thanks.