{"hash":"0x8750F69A720C2E41","ns":"ITEMDATABASE","name":"_ITEMDATABASE_GET_COMPONENT_ITEM","slug":"_ITEMDATABASE_GET_COMPONENT_ITEM","official":false,"named":true,"luaName":"ItemdatabaseGetComponentItem","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"collectionId","type":"int"},{"name":"index","type":"int"},{"name":"outKey","type":"Hash*"}],"summary":"","descriptions":[{"source":"alloc8or","format":"text","body":"Params: p2 can be a component item hash"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/ITEMDATABASE/_ITEMDATABASE_GET_COMPONENT_ITEM","markdownUrl":"https://natives.borderlinerp.com/natives/ITEMDATABASE/_ITEMDATABASE_GET_COMPONENT_ITEM.md","snippets":{"lua":"local retval, outKey = ItemdatabaseGetComponentItem(collectionId, index, outKey)","luaInvoke":"local retval, outKey = Citizen.InvokeNative(0x8750F69A720C2E41, collectionId, index, Citizen.PointerValueIntInitialized(outKey), Citizen.ReturnResultAnyway())","js":"const [retval, outKey] = ItemdatabaseGetComponentItem(collectionId, index, outKey);","jsInvoke":"const [retval, outKey] = Citizen.invokeNative('0x8750F69A720C2E41', collectionId, index, Citizen.pointerValueIntInitialized(outKey), Citizen.returnResultAnyway());","csharp":"var outKey = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0x8750F69A720C2E41, collectionId, index, outKey);\n// outKey.GetResult<int>()","notes":["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."]}}