isConnected: Difference between revisions
Jump to navigation
Jump to search
m (Mex moved page IsConnected to isConnected) |
No edit summary |
||
Line 1: | Line 1: | ||
{{ | {{ScriptItem2 | ||
| | |name = isConnected | ||
|side = client | |||
|type = variable | |type = variable | ||
| | |games = iii vc sa iv | ||
|desc = fetch the server-connection status of the local client | |||
|return = bool a boolean, <code>bool true</code> if the client is connected to a server, <code>bool false</code> otherwise | |||
|readonly = true | |readonly = true | ||
}} | }} |
Latest revision as of 20:36, 19 November 2022
Variable
Client Only
Online and Offline
Read-Only
Available since Client 1.0.0
bool isConnected
The isConnected variable is used to fetch the server-connection status of the local client.
Value
bool | A boolean, bool true if the client is connected to a server, bool false otherwise.
|
readonly | This variable cannot be changed. |
Notes
There aren't any notes for this variable.
Examples
There aren't any examples for this variable.
Compatibility
There isn't any compatibility information for this variable.
Related
Client Related
addNetworkHandler
connect
disconnect
gta.shutdownAndLaunchNetworkGame
isConnected
isConnecting
removeNetworkHandler