The Lab
NETWORK native

_NETWORK_GET_SESSION_HOST

returns Player0 paramsbuild 1207

Returns the host of the current network session.

Signature

C
Player _NETWORK_GET_SESSION_HOST(); // 0x8DC9AA3B508B1A85 b1207

Parameters

This native takes no parameters.

Facts

Facts about _NETWORK_GET_SESSION_HOST
Name
_NETWORK_GET_SESSION_HOST
Hash
0x8DC9AA3B508B1A85
Namespace
Returns
Player
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local player = Citizen.InvokeNative(0x8DC9AA3B508B1A85, -- _NETWORK_GET_SESSION_HOST
  Citizen.ResultAsInteger()
)
print(player)
JavaScript
const player = Citizen.invokeNative("0x8DC9AA3B508B1A85", // _NETWORK_GET_SESSION_HOST
  Citizen.resultAsInteger()
);
console.log(player)
C#
int player = Function.Call<int>((Hash)0x8DC9AA3B508B1A85); // _NETWORK_GET_SESSION_HOST
All NETWORK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.