NETWORK_IS_PLAYER_CONNECTED
Returns true if the player is connected to the session.
Signature
BOOL NETWORK_IS_PLAYER_CONNECTED(Player player); // 0x93DC1BE4E1ABE9D1 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
Facts
| Name | NETWORK_IS_PLAYER_CONNECTED |
|---|---|
| Hash | 0x93DC1BE4E1ABE9D1 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x93DC1BE4E1ABE9D1, -- NETWORK_IS_PLAYER_CONNECTED
PlayerId() -- Player player
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x93DC1BE4E1ABE9D1", // NETWORK_IS_PLAYER_CONNECTED
PlayerId(), // Player player
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x93DC1BE4E1ABE9D1, // NETWORK_IS_PLAYER_CONNECTED
API.PlayerId() // Player player
);Related NETWORK natives
- NETWORK_IS_PLAYER_CONCEALED
- NETWORK_IS_PLAYER_A_PARTICIPANT
- NETWORK_IS_PLAYER_A_PARTICIPANT_ON_SCRIPT
- NETWORK_IS_PLAYER_ACTIVE
- NETWORK_IS_PLAYER_IN_MP_CUTSCENE
- NETWORK_IS_PLAYER_INDEX_VALID
- NETWORK_IS_CONNECTED_VIA_RELAY
- NETWORK_GET_THIS_SCRIPT_IS_NETWORK_SCRIPT
- NETWORK_SET_PLAYER_IS_PASSIVE
- NETWORK_SET_THIS_SCRIPT_IS_NETWORK_SCRIPT
- NETWORK_IS_PLATFORM_INVITE_PENDING
- NETWORK_IS_PARTICIPANT_ACTIVE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.