RedM Natives

COMPENDIUM_ANIMAL_GET_SAMPLE_INVENTORY_ITEM

Hash0x4E4ACAE1C671A9DA
Runtime nameCompendiumAnimalGetSampleInventoryItem
NamespaceCOMPENDIUM
SideClient
NameOfficial
Docs
Since build1311

Signature

Any COMPENDIUM_ANIMAL_GET_SAMPLE_INVENTORY_ITEM(int compendiumEntry);

Parameters

NameTypeDescription
compendiumEntryint—

Returns Any

Usage

Lua
local retval = CompendiumAnimalGetSampleInventoryItem(compendiumEntry)

-- always works, by hash
local retval = Citizen.InvokeNative(0x4E4ACAE1C671A9DA, compendiumEntry, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = CompendiumAnimalGetSampleInventoryItem(compendiumEntry);

// by hash
const retval = Citizen.invokeNative('0x4E4ACAE1C671A9DA', compendiumEntry, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x4E4ACAE1C671A9DA, compendiumEntry);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.