{"hash":"0xFE90ABBCBFDC13B2","ns":"ITEMDATABASE","name":"ITEMDATABASE_FILLOUT_ITEM_INFO","slug":"ITEMDATABASE_FILLOUT_ITEM_INFO","official":true,"named":true,"luaName":"ItemdatabaseFilloutItemInfo","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"key","type":"Hash"},{"name":"outData","type":"Any*"}],"summary":"Outputs item infos. alignas(8) Hash category; alignas(8) Hash itemType; alignas(8) Hash unk2; alignas(8) Hash model; alignas(8) Hash award;","descriptions":[{"source":"alloc8or","format":"text","body":"Outputs item infos.\nstruct ItemInfo\n{\n\talignas(8) Hash category;\n\talignas(8) Hash itemType;\n\talignas(8) Hash unk2;\n\talignas(8) Hash model;\n\talignas(8) Hash award;\n};"},{"source":"vorp","format":"text","body":"outputs struct ItemInfo { Hash category; Hash itemType; Hash unk2; Hash model; Hash award; }"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/ITEMDATABASE/ITEMDATABASE_FILLOUT_ITEM_INFO","markdownUrl":"https://natives.borderlinerp.com/natives/ITEMDATABASE/ITEMDATABASE_FILLOUT_ITEM_INFO.md","snippets":{"lua":"local retval, outData = ItemdatabaseFilloutItemInfo(key, outData)","luaInvoke":"local retval, outData = Citizen.InvokeNative(0xFE90ABBCBFDC13B2, key, Citizen.PointerValueIntInitialized(outData), Citizen.ReturnResultAnyway())","js":"const [retval, outData] = ItemdatabaseFilloutItemInfo(key, outData);","jsInvoke":"const [retval, outData] = Citizen.invokeNative('0xFE90ABBCBFDC13B2', key, Citizen.pointerValueIntInitialized(outData), Citizen.returnResultAnyway());","csharp":"var outData = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0xFE90ABBCBFDC13B2, key, outData);\n// outData.GetResult<int>()","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"name\")` or a backtick literal like `` `name` ``.","The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.","`Any*` arguments are often structs. Build them with a DataView buffer and pass it with `:Buffer()` — see the examples and notes below."]}}