COMPENDIUM_GET_NUM_ENTRIES_IN_SUBCATEGORY
Hash
0xF58A0C0E086E8E36Runtime name
CompendiumGetNumEntriesInSubcategoryNamespaceCOMPENDIUM
SideClient
NameOfficial
Docs
Since build1311
Signature
int COMPENDIUM_GET_NUM_ENTRIES_IN_SUBCATEGORY(Hash category, Hash subcategory);Parameters
| Name | Type | Description |
|---|---|---|
category | Hash | — |
subcategory | Hash | — |
Returns int
Usage
local retval = CompendiumGetNumEntriesInSubcategory(category, subcategory)
-- always works, by hash
local retval = Citizen.InvokeNative(0xF58A0C0E086E8E36, category, subcategory, Citizen.ResultAsInteger())JavaScript and C#
const retval = CompendiumGetNumEntriesInSubcategory(category, subcategory);
// by hash
const retval = Citizen.invokeNative('0xF58A0C0E086E8E36', category, subcategory, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xF58A0C0E086E8E36, category, subcategory);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.