RedM Natives

COMPENDIUM_GET_SUBCATEGORY_TOAST_APP_ID

Hash0x2BF30D9D4D680112
Runtime nameCompendiumGetSubcategoryToastAppId
NamespaceCOMPENDIUM
SideClient
NameOfficial
Docs
Since build1311

Signature

Any COMPENDIUM_GET_SUBCATEGORY_TOAST_APP_ID(Hash category, Hash subcategory);

Parameters

NameTypeDescription
categoryHash—
subcategoryHash—

Returns Any

Usage

Lua
local retval = CompendiumGetSubcategoryToastAppId(category, subcategory)

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

// by hash
const retval = Citizen.invokeNative('0x2BF30D9D4D680112', category, subcategory, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x2BF30D9D4D680112, 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.