The Lab
NETWORK native

_NETWORK_GET_PLAYER_OWNER_OF_NETWORK_ID

returns Player1 parambuild 1207

Returns the player who owns the network id netId.

Signature

C
Player _NETWORK_GET_PLAYER_OWNER_OF_NETWORK_ID(int netId); // 0xA6C0787443C9583E b1207

Parameters

#NameType
1netIdint

Facts

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

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