connect: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
Line 1: Line 1:
{{ScriptItem
{{ScriptItem
|online = false
|endpoint = client
|endpoint = client
|type = function
|type = function

Latest revision as of 23:14, 21 May 2022

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

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

icon-iii.png icon-vc.png icon-sa.png icon-iv.png addNetworkHandler
icon-iii.png icon-vc.png icon-sa.png icon-iv.png connect
icon-iii.png icon-vc.png icon-sa.png icon-iv.png disconnect
icon-iv.png gta.shutdownAndLaunchNetworkGame
icon-iii.png icon-vc.png icon-sa.png icon-iv.png isConnected
icon-iii.png icon-vc.png icon-sa.png icon-iv.png isConnecting
icon-iii.png icon-vc.png icon-sa.png icon-iv.png removeNetworkHandler