NetworkClientNot in this build

networkLoadGamerDisplayName

_NETWORK_LOAD_GAMER_DISPLAY_NAME0x338ECE3637937BC2

The GTA V native _NETWORK_LOAD_GAMER_DISPLAY_NAME of the NETWORK namespace, as LS:MP client scripts call it: the global function networkLoadGamerDisplayName, in JavaScript and in Lua.

SignatureJavaScript
networkLoadGamerDisplayName(gamerHandle: null): string
SignatureLua
networkLoadGamerDisplayName(gamerHandle: nil): string
⚠
Not in this game build

The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.

Usage

JavaScript
const text = networkLoadGamerDisplayName(null);
Lua
local text = networkLoadGamerDisplayName(nil)

Parameters

ParameterTypeJavaScriptLua
gamerHandleAny*nullnil

Returns

string JavaScript string, Lua string

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Returns the name from given friend gamer handle.

Reference

Namespace
Network NETWORK
In the game
const char* _NETWORK_LOAD_GAMER_DISPLAY_NAME(Any* gamerHandle)
Hash
0x338ECE3637937BC2
Introduced
Game build 3258 legacy numbering

Open in the interactive natives reference