Garry's Mod Wiki

serverlist.AddCurrentServerToFavorites

  serverlist.AddCurrentServerToFavorites( boolean addOrRemove )

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.

Arguments

1 boolean addOrRemove
true if to add, or false if to remove from favorites.