_ITEMDATABASE_GET_COMPONENT_ITEM
Hash
0x8750F69A720C2E41Runtime name
ItemdatabaseGetComponentItemNamespaceITEMDATABASE
SideClient
NameCommunity guess
Docs
Since build1207
Signature
BOOL _ITEMDATABASE_GET_COMPONENT_ITEM(int collectionId, int index, Hash* outKey);Parameters
| Name | Type | Description |
|---|---|---|
collectionId | int | — |
index | int | — |
outKey | Hash* | — |
Returns BOOL
Description
Params: p2 can be a component item hash
Usage
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#
const [retval, outKey] = ItemdatabaseGetComponentItem(collectionId, index, outKey);
// by hash
const [retval, outKey] = Citizen.invokeNative('0x8750F69A720C2E41', collectionId, index, Citizen.pointerValueIntInitialized(outKey), Citizen.returnResultAnyway());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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.