RedM Natives

NETWORK_GET_LOCAL_HANDLE

Hash0xE86051786B66CD8E
Runtime nameNetworkGetLocalHandle
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xE86051786B66CD8E

Signature

void NETWORK_GET_LOCAL_HANDLE(Any* gamerHandle);

Parameters

NameTypeDescription
gamerHandleAny*—

Returns void

Usage

Lua
local gamerHandle = NetworkGetLocalHandle(gamerHandle)

-- always works, by hash
local gamerHandle = Citizen.InvokeNative(0xE86051786B66CD8E, Citizen.PointerValueIntInitialized(gamerHandle))
JavaScript and C#
JavaScript
const gamerHandle = NetworkGetLocalHandle(gamerHandle);

// by hash
const gamerHandle = Citizen.invokeNative('0xE86051786B66CD8E', Citizen.pointerValueIntInitialized(gamerHandle));
C#
var gamerHandle = new OutputArgument();
Function.Call((Hash)0xE86051786B66CD8E, gamerHandle);
// gamerHandle.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
  • Any* arguments are often structs. Build them with a DataView buffer and pass it with :Buffer() — see the examples and notes below.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.