{"hash":"0x52BDE32F21BA3B6D","ns":"NETSHOPPING","name":"_CASHINVENTORY_TRANSACTION_ADD_AWARD","slug":"_CASHINVENTORY_TRANSACTION_ADD_AWARD","official":false,"named":true,"luaName":"CashinventoryTransactionAddAward","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"id","type":"int"},{"name":"hash","type":"Hash"},{"name":"p2","type":"Any*"},{"name":"p3","type":"Any*"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/NETSHOPPING/_CASHINVENTORY_TRANSACTION_ADD_AWARD","markdownUrl":"https://natives.borderlinerp.com/natives/NETSHOPPING/_CASHINVENTORY_TRANSACTION_ADD_AWARD.md","snippets":{"lua":"local retval, p2, p3 = CashinventoryTransactionAddAward(id, hash)","luaInvoke":"local retval, p2, p3 = Citizen.InvokeNative(0x52BDE32F21BA3B6D, id, hash, Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.ReturnResultAnyway())","js":"const [retval, p2, p3] = CashinventoryTransactionAddAward(id, hash);","jsInvoke":"const [retval, p2, p3] = Citizen.invokeNative('0x52BDE32F21BA3B6D', id, hash, Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.returnResultAnyway());","csharp":"var p2 = new OutputArgument();\nvar p3 = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0x52BDE32F21BA3B6D, id, hash, p2, p3);\n// p2.GetResult<int>()\n// p3.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` ``.","Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.","`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."]}}