RedM Natives

GET_INDEXED_ITEM_IN_ITEMSET

Hash0x275A2E2C0FAB7612
Runtime nameGetIndexedItemInItemset
NamespaceITEMSETS
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x7A197E2521EE2BAB

Signature

ScrHandle GET_INDEXED_ITEM_IN_ITEMSET(int index, ItemSet itemset);

Parameters

NameTypeDescription
indexint—
itemsetItemSet—

Returns ScrHandle

Usage

Lua
local retval = GetIndexedItemInItemset(index, itemset)

-- always works, by hash
local retval = Citizen.InvokeNative(0x275A2E2C0FAB7612, index, itemset, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetIndexedItemInItemset(index, itemset);

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

Sources

alloc8or RDR3 NativeDB

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