RedM Natives

NETWORK_GET_TOTAL_NUM_FRIENDS

Hash0xDB7ABDD203FA3704
Runtime nameNetworkGetTotalNumFriends
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207

Signature

int NETWORK_GET_TOTAL_NUM_FRIENDS();

Returns int

Usage

Lua
local retval = NetworkGetTotalNumFriends()

-- always works, by hash
local retval = Citizen.InvokeNative(0xDB7ABDD203FA3704, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = NetworkGetTotalNumFriends();

// by hash
const retval = Citizen.invokeNative('0xDB7ABDD203FA3704', Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xDB7ABDD203FA3704);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.