The Lab
NETWORK native

NETWORK_GET_HOST_OF_THREAD

returns Player1 parambuild 1207

Returns the host player of the script thread threadId.

Signature

C
Player NETWORK_GET_HOST_OF_THREAD(int threadId); // 0xB4A25351D79B444C b1207

Parameters

#NameType
1threadIdint

Facts

Facts about NETWORK_GET_HOST_OF_THREAD
Name
NETWORK_GET_HOST_OF_THREAD
Hash
0xB4A25351D79B444C
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(0xB4A25351D79B444C, -- NETWORK_GET_HOST_OF_THREAD
  0, -- int threadId
  Citizen.ResultAsInteger()
)
print(player)
JavaScript
const player = Citizen.invokeNative("0xB4A25351D79B444C", // NETWORK_GET_HOST_OF_THREAD
  0, // int threadId
  Citizen.resultAsInteger()
);
console.log(player)
C#
int player = Function.Call<int>((Hash)0xB4A25351D79B444C, // NETWORK_GET_HOST_OF_THREAD
  0 // int threadId
);
All NETWORK natives

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