RedM Natives

COMPENDIUM_GET_NUM_ENTRIES_IN_SUBCATEGORY

Hash0xF58A0C0E086E8E36
Runtime nameCompendiumGetNumEntriesInSubcategory
NamespaceCOMPENDIUM
SideClient
NameOfficial
Docs
Since build1311

Signature

int COMPENDIUM_GET_NUM_ENTRIES_IN_SUBCATEGORY(Hash category, Hash subcategory);

Parameters

NameTypeDescription
categoryHash—
subcategoryHash—

Returns int

Usage

Lua
local retval = CompendiumGetNumEntriesInSubcategory(category, subcategory)

-- always works, by hash
local retval = Citizen.InvokeNative(0xF58A0C0E086E8E36, category, subcategory, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = CompendiumGetNumEntriesInSubcategory(category, subcategory);

// by hash
const retval = Citizen.invokeNative('0xF58A0C0E086E8E36', category, subcategory, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xF58A0C0E086E8E36, category, subcategory);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

alloc8or RDR3 NativeDB

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