RedM Natives

NETWORK_GET_GAMERTAG_FROM_HANDLE

Always returns a null string.

Hash0x426141162EBE5CDB
Runtime nameNetworkGetGamertagFromHandle
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x426141162EBE5CDB

Not called by the game's own scripts — behaviour may be incomplete.

Signature

const char* NETWORK_GET_GAMERTAG_FROM_HANDLE(Any* gamerHandle);

Parameters

NameTypeDescription
gamerHandleAny*—

Returns const char*

Description

Always returns a null string.

Usage

Lua
local retval, gamerHandle = NetworkGetGamertagFromHandle(gamerHandle)

-- always works, by hash
local retval, gamerHandle = Citizen.InvokeNative(0x426141162EBE5CDB, Citizen.PointerValueIntInitialized(gamerHandle), Citizen.ResultAsString())
JavaScript and C#
JavaScript
const [retval, gamerHandle] = NetworkGetGamertagFromHandle(gamerHandle);

// by hash
const [retval, gamerHandle] = Citizen.invokeNative('0x426141162EBE5CDB', Citizen.pointerValueIntInitialized(gamerHandle), Citizen.returnResultAnyway(), Citizen.resultAsString());
C#
var gamerHandle = new OutputArgument();
string retval = Function.Call<string>((Hash)0x426141162EBE5CDB, 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.