The Lab
NETWORK native

NETWORK_GET_PLAYER_FROM_GAMER_HANDLE

returns Player1 parambuild 1207

Returns the player in the session matching the gamer handle.

Signature

C
Player NETWORK_GET_PLAYER_FROM_GAMER_HANDLE(Any* gamerHandle); // 0xCE5F689CF5A0A49D b1207

Parameters

#NameType
1gamerHandleAny* (out pointer)

Facts

Facts about NETWORK_GET_PLAYER_FROM_GAMER_HANDLE
Name
NETWORK_GET_PLAYER_FROM_GAMER_HANDLE
Hash
0xCE5F689CF5A0A49D
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, gamerHandle = Citizen.InvokeNative(0xCE5F689CF5A0A49D, -- NETWORK_GET_PLAYER_FROM_GAMER_HANDLE
  Citizen.PointerValueInt(), -- Any* gamerHandle
  Citizen.ResultAsInteger()
)
print(player, gamerHandle)
JavaScript
const [player, gamerHandle] = Citizen.invokeNative("0xCE5F689CF5A0A49D", // NETWORK_GET_PLAYER_FROM_GAMER_HANDLE
  Citizen.pointerValueInt(), // Any* gamerHandle
  Citizen.resultAsInteger()
);
console.log(player, gamerHandle)
C#
var gamerHandleArg = new OutputArgument();
int player = Function.Call<int>((Hash)0xCE5F689CF5A0A49D, // NETWORK_GET_PLAYER_FROM_GAMER_HANDLE
  gamerHandleArg // Any* gamerHandle
);
int gamerHandle = gamerHandleArg.GetResult<int>();
All NETWORK natives

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