Garry's Mod Wiki

permissions.AskToConnect

  permissions.AskToConnect( string address )

Description

Requests the player to connect to a specified server. The player will be prompted with a confirmation window.

Arguments

1 string address
The address to ask to connect to. If a port is not given, the default :27015 port will be added.