The Lab
NETWORK native

NETWORK_HANDLE_FROM_FRIEND

returns void2 paramsbuild 1207

Writes the gamer handle of the friend at friendIndex to gamerHandle.

Signature

C
void NETWORK_HANDLE_FROM_FRIEND(int friendIndex, Any* gamerHandle); // 0xD45CB817D7E177D2 b1207

Parameters

#NameType
1friendIndexint
2gamerHandleAny* (out pointer)

Facts

Facts about NETWORK_HANDLE_FROM_FRIEND
Name
NETWORK_HANDLE_FROM_FRIEND
Hash
0xD45CB817D7E177D2
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(0xD45CB817D7E177D2, -- NETWORK_HANDLE_FROM_FRIEND
  0, -- int friendIndex
  Citizen.PointerValueInt() -- Any* gamerHandle
)
print(gamerHandle)
JavaScript
const gamerHandle = Citizen.invokeNative("0xD45CB817D7E177D2", // NETWORK_HANDLE_FROM_FRIEND
  0, // int friendIndex
  Citizen.pointerValueInt() // Any* gamerHandle
);
console.log(gamerHandle)
C#
var gamerHandleArg = new OutputArgument();
Function.Call((Hash)0xD45CB817D7E177D2, // NETWORK_HANDLE_FROM_FRIEND
  0, // int friendIndex
  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.