NetworkClient

networkGetFriendDisplayName

NETWORK_GET_FRIEND_DISPLAY_NAME0x4164F227D052E293

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

SignatureJavaScript
networkGetFriendDisplayName(friendIndex: number): string
SignatureLua
networkGetFriendDisplayName(friendIndex: integer): string

Usage

JavaScript
const text = networkGetFriendDisplayName(friendIndex);
Lua
local text = networkGetFriendDisplayName(friendIndex)

Parameters

ParameterTypeJavaScriptLua
friendIndexintnumberinteger

Returns

string JavaScript string, Lua string

Reference

Namespace
Network NETWORK
In the game
const char* NETWORK_GET_FRIEND_DISPLAY_NAME(int friendIndex)
Hash
0x4164F227D052E293
Formerly
_NETWORK_GET_FRIEND_NAME _NETWORK_GET_FRIEND_NAME_FROM_INDEX

Open in the interactive natives reference