Garry's Mod Wiki

serverlist.AddCurrentServerToFavorites

  serverlist.AddCurrentServerToFavorites()

Description

This is used internally - although you're able to use it you probably shouldn't.

Adds current server the player is on to their favorites.