The Lab
NETWORK native

NETWORK_GET_HOST_OF_SCRIPT

returns Player3 paramsbuild 1436

Returns the host player of the named network script instance.

Signature

C
Player NETWORK_GET_HOST_OF_SCRIPT(const char* scriptName, int p1, int p2); // 0x1D6A14F1F9A736FC b1436

Parameters

#NameType
1scriptNameconst char*
2p1int
3p2int

Facts

Facts about NETWORK_GET_HOST_OF_SCRIPT
Name
NETWORK_GET_HOST_OF_SCRIPT
Hash
0x1D6A14F1F9A736FC
Namespace
Returns
Player
Game build
1436

Examples

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

Lua
local player = Citizen.InvokeNative(0x1D6A14F1F9A736FC, -- NETWORK_GET_HOST_OF_SCRIPT
  "text", -- const char* scriptName
  0, -- int p1
  0, -- int p2
  Citizen.ResultAsInteger()
)
print(player)
JavaScript
const player = Citizen.invokeNative("0x1D6A14F1F9A736FC", // NETWORK_GET_HOST_OF_SCRIPT
  "text", // const char* scriptName
  0, // int p1
  0, // int p2
  Citizen.resultAsInteger()
);
console.log(player)
C#
int player = Function.Call<int>((Hash)0x1D6A14F1F9A736FC, // NETWORK_GET_HOST_OF_SCRIPT
  "text", // const char* scriptName
  0, // int p1
  0 // int p2
);
All NETWORK natives

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