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