RedM Natives

_ITEMDATABASE_GET_COMPONENT_ITEM

Hash0x8750F69A720C2E41
Runtime nameItemdatabaseGetComponentItem
NamespaceITEMDATABASE
SideClient
NameCommunity guess
Docs
Since build1207

Signature

BOOL _ITEMDATABASE_GET_COMPONENT_ITEM(int collectionId, int index, Hash* outKey);

Parameters

NameTypeDescription
collectionIdint—
indexint—
outKeyHash*—

Returns BOOL

Description

Params: p2 can be a component item hash

Usage

Lua
local retval, outKey = ItemdatabaseGetComponentItem(collectionId, index, outKey)

-- always works, by hash
local retval, outKey = Citizen.InvokeNative(0x8750F69A720C2E41, collectionId, index, Citizen.PointerValueIntInitialized(outKey), Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, outKey] = ItemdatabaseGetComponentItem(collectionId, index, outKey);

// by hash
const [retval, outKey] = Citizen.invokeNative('0x8750F69A720C2E41', collectionId, index, Citizen.pointerValueIntInitialized(outKey), Citizen.returnResultAnyway());
C#
var outKey = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x8750F69A720C2E41, collectionId, index, outKey);
// outKey.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

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