networkGetFriendDisplayName
NETWORK_GET_FRIEND_DISPLAY_NAME0x4164F227D052E293The 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.
networkGetFriendDisplayName(friendIndex: number): stringnetworkGetFriendDisplayName(friendIndex: integer): stringUsage
JavaScript
const text = networkGetFriendDisplayName(friendIndex);Lua
local text = networkGetFriendDisplayName(friendIndex)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
friendIndex | int | number | integer |
Returns
string JavaScript string, Lua stringReference
- 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