Garry's Mod Wiki

RequestConnectToServer

  RequestConnectToServer( string serverip )

Description

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

If the server has the permission "connect" granted, it will instantly connect you to the server.
If the permission is not granted it will, it opens a confirmation window to connect to the server.

connect_dialog.png

Arguments

1 string serverip
The server ip to connect to