COMPENDIUM_GET_ENTRY_BY_STAT_ITEM
Hash
0x66EC938394D76C85Runtime name
CompendiumGetEntryByStatItemNamespaceCOMPENDIUM
SideClient
NameOfficial
Docs
Since build1355
Signature
int COMPENDIUM_GET_ENTRY_BY_STAT_ITEM(Hash category, Hash animalType);Parameters
| Name | Type | Description |
|---|---|---|
category | Hash | — |
animalType | Hash | — |
Returns int
Usage
local retval = CompendiumGetEntryByStatItem(category, animalType)
-- always works, by hash
local retval = Citizen.InvokeNative(0x66EC938394D76C85, category, animalType, Citizen.ResultAsInteger())JavaScript and C#
const retval = CompendiumGetEntryByStatItem(category, animalType);
// by hash
const retval = Citizen.invokeNative('0x66EC938394D76C85', category, animalType, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x66EC938394D76C85, category, animalType);- 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.