NETWORK_GET_HOST_OF_SCRIPT
Returns the host player of the named network script instance.
Signature
Player NETWORK_GET_HOST_OF_SCRIPT(const char* scriptName, int p1, int p2); // 0x1D6A14F1F9A736FC b1436Parameters
| # | Name | Type |
|---|---|---|
| 1 | scriptName | const char* |
| 2 | p1 | int |
| 3 | p2 | int |
Facts
| 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.
local player = Citizen.InvokeNative(0x1D6A14F1F9A736FC, -- NETWORK_GET_HOST_OF_SCRIPT
"text", -- const char* scriptName
0, -- int p1
0, -- int p2
Citizen.ResultAsInteger()
)
print(player)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)int player = Function.Call<int>((Hash)0x1D6A14F1F9A736FC, // NETWORK_GET_HOST_OF_SCRIPT
"text", // const char* scriptName
0, // int p1
0 // int p2
);Related NETWORK natives
- NETWORK_GET_HOST_OF_THIS_SCRIPT
- NETWORK_GET_HOST_OF_THREAD
- NETWORK_GET_THIS_SCRIPT_IS_NETWORK_SCRIPT
- NETWORK_GET_DESTROYER_OF_NETWORK_ID
- NETWORK_GET_INSTANCE_ID_OF_THIS_SCRIPT
- NETWORK_IS_HOST_OF_THIS_SCRIPT
- NETWORK_SET_THIS_SCRIPT_IS_NETWORK_SCRIPT
- NETWORK_GET_ASSISTED_DAMAGE_OF_ENTITY
- NETWORK_GET_ENTITY_FROM_NETWORK_ID
- NETWORK_GET_ENTITY_KILLER_OF_PLAYER
- NETWORK_GET_NETWORK_ID_FROM_ENTITY
- NETWORK_GET_NETWORK_ID_FROM_ROPE_ID
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.