NetworkClient

networkGetFriendCount

NETWORK_GET_FRIEND_COUNT0x203F1CFD823B27A4

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

SignatureJavaScript
networkGetFriendCount(): number
SignatureLua
networkGetFriendCount(): integer

Usage

JavaScript
const result = networkGetFriendCount();
Lua
local result = networkGetFriendCount()

Parameters

None.

Returns

int JavaScript number, Lua integer

Reference

Namespace
Network NETWORK
In the game
int NETWORK_GET_FRIEND_COUNT()
Hash
0x203F1CFD823B27A4

Open in the interactive natives reference