RedM Natives

COMPENDIUM_GET_SUBCATEGORY_SAMPLE_TOAST_TITLE

Hash0x5E50C67EB60951E6
Runtime nameCompendiumGetSubcategorySampleToastTitle
NamespaceCOMPENDIUM
SideClient
NameOfficial
Docs
Since build1311

Signature

const char* COMPENDIUM_GET_SUBCATEGORY_SAMPLE_TOAST_TITLE(Hash category, Hash subcategory);

Parameters

NameTypeDescription
categoryHash—
subcategoryHash—

Returns const char*

Usage

Lua
local retval = CompendiumGetSubcategorySampleToastTitle(category, subcategory)

-- always works, by hash
local retval = Citizen.InvokeNative(0x5E50C67EB60951E6, category, subcategory, Citizen.ResultAsString())
JavaScript and C#
JavaScript
const retval = CompendiumGetSubcategorySampleToastTitle(category, subcategory);

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