The Lab
NETWORK native

NETWORK_HANDLE_FROM_PLAYER

returns void2 paramsbuild 1207

Writes the gamer handle of the player to gamerHandle.

Signature

C
void NETWORK_HANDLE_FROM_PLAYER(Player player, Any* gamerHandle); // 0x388EB2B86C73B6B3 b1207

Parameters

#NameType
1playerPlayer
2gamerHandleAny* (out pointer)

Facts

Facts about NETWORK_HANDLE_FROM_PLAYER
Name
NETWORK_HANDLE_FROM_PLAYER
Hash
0x388EB2B86C73B6B3
Namespace
Returns
void
Game build
1207

Examples

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

Lua
local gamerHandle = Citizen.InvokeNative(0x388EB2B86C73B6B3, -- NETWORK_HANDLE_FROM_PLAYER
  PlayerId(), -- Player player
  Citizen.PointerValueInt() -- Any* gamerHandle
)
print(gamerHandle)
JavaScript
const gamerHandle = Citizen.invokeNative("0x388EB2B86C73B6B3", // NETWORK_HANDLE_FROM_PLAYER
  PlayerId(), // Player player
  Citizen.pointerValueInt() // Any* gamerHandle
);
console.log(gamerHandle)
C#
var gamerHandleArg = new OutputArgument();
Function.Call((Hash)0x388EB2B86C73B6B3, // NETWORK_HANDLE_FROM_PLAYER
  API.PlayerId(), // Player player
  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.