Garry's Mod Wiki

serverlist.RemoveServerFromFavorites

  serverlist.RemoveServerFromFavorites( string address )

Description

Removes the given server address from their favorites.

Arguments

1 string address
Server Address. IP:Port like "127.0.0.1:27015"

Example

Adds a server address to their favorites and removes it.

serverlist.AddServerToFavorites( "127.0.0.1:27015" ) print( serverlist.IsServerFavorite( "127.0.0.1:27015" ) ) serverlist.RemoveServerFromFavorites( "127.0.0.1:27015" ) print( serverlist.IsServerFavorite( "127.0.0.1:27015" ) )
Output:
true false