RedM Natives

COMPENDIUM_GET_SUBCATEGORY_PED_IS_IN

Hash0x9B657550DF55EC96
Runtime nameCompendiumGetSubcategoryPedIsIn
NamespaceCOMPENDIUM
SideClient
NameOfficial
Docs
Since build1311

Signature

Hash COMPENDIUM_GET_SUBCATEGORY_PED_IS_IN(Hash category, Ped ped);

Parameters

NameTypeDescription
categoryHash—
pedPed—

Returns Hash

Usage

Lua
local retval = CompendiumGetSubcategoryPedIsIn(category, ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0x9B657550DF55EC96, category, ped, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = CompendiumGetSubcategoryPedIsIn(category, ped);

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