connect

Revision as of 18:22, 4 October 2019 by Mex (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Function Client Only icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline

Available since Client 1.0.72

void connect(string host, int port, [ string password = "" ])

The connect function is used to connect to a server.

Parameters

1) string host The host to connect to.
2) int port The port to connect to.
3) string password Optional, defaults to "". The password to connect.

Return

void This function doesn't return a value.

Notes

There aren't any notes for this function.

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.

Related

Client Related

        addNetworkHandler
        connect
        disconnect
  gta.shutdownAndLaunchNetworkGame
        isConnected
        isConnecting
        removeNetworkHandler