{"hash":"0x8D029948CA29409B","ns":"ITEMDATABASE","name":"_ITEMDATABASE_FILLOUT_AWARD_UNLOCK_FLAG","slug":"_ITEMDATABASE_FILLOUT_AWARD_UNLOCK_FLAG","official":false,"named":true,"luaName":"ItemdatabaseFilloutAwardUnlockFlag","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"award","type":"Hash"},{"name":"index","type":"int"},{"name":"outData","type":"Any*"}],"summary":"Fills out unlock-flag data for an award entry.","descriptions":[{"source":"alloc8or","format":"text","body":"Fills out unlock-flag data for an award entry.\n\noutData:\nstruct AwardUnlockFlag\n{\n\talignas(8) Hash item;\n\talignas(8) int  p1;\n\talignas(8) Hash unlockFlag; // e.g. UF_VISIBLE\n};"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/ITEMDATABASE/_ITEMDATABASE_FILLOUT_AWARD_UNLOCK_FLAG","markdownUrl":"https://natives.borderlinerp.com/natives/ITEMDATABASE/_ITEMDATABASE_FILLOUT_AWARD_UNLOCK_FLAG.md","snippets":{"lua":"local retval, outData = ItemdatabaseFilloutAwardUnlockFlag(award, index, outData)","luaInvoke":"local retval, outData = Citizen.InvokeNative(0x8D029948CA29409B, award, index, Citizen.PointerValueIntInitialized(outData), Citizen.ReturnResultAnyway())","js":"const [retval, outData] = ItemdatabaseFilloutAwardUnlockFlag(award, index, outData);","jsInvoke":"const [retval, outData] = Citizen.invokeNative('0x8D029948CA29409B', award, index, Citizen.pointerValueIntInitialized(outData), Citizen.returnResultAnyway());","csharp":"var outData = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0x8D029948CA29409B, award, index, 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.","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."]}}