networkLoadGamerDisplayName
_NETWORK_LOAD_GAMER_DISPLAY_NAME0x338ECE3637937BC2The 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.
networkLoadGamerDisplayName(gamerHandle: null): stringnetworkLoadGamerDisplayName(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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
gamerHandle | Any* | null | nil |
Returns
string JavaScript string, Lua stringNotes
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