connect: Difference between revisions
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
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
addNetworkHandler
connect
disconnect
gta.shutdownAndLaunchNetworkGame
isConnected
isConnecting
removeNetworkHandler