COMPENDIUM_GET_SUBCATEGORY_PED_IS_IN
Hash
0x9B657550DF55EC96Runtime name
CompendiumGetSubcategoryPedIsInNamespaceCOMPENDIUM
SideClient
NameOfficial
Docs
Since build1311
Signature
Hash COMPENDIUM_GET_SUBCATEGORY_PED_IS_IN(Hash category, Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
category | Hash | — |
ped | Ped | — |
Returns Hash
Usage
local retval = CompendiumGetSubcategoryPedIsIn(category, ped)
-- always works, by hash
local retval = Citizen.InvokeNative(0x9B657550DF55EC96, category, ped, Citizen.ResultAsInteger())JavaScript and C#
const retval = CompendiumGetSubcategoryPedIsIn(category, ped);
// by hash
const retval = Citizen.invokeNative('0x9B657550DF55EC96', category, ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x9B657550DF55EC96, category, ped);- 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.