{"hash":"0xDF4A3404D022ADDE","ns":"WEAPON","name":"_REFILL_AMMO_IN_CLIP","slug":"_REFILL_AMMO_IN_CLIP","official":false,"named":true,"luaName":"RefillAmmoInClip","game":"rdr3","apiset":"client","returnType":"Any","params":[{"name":"ped","type":"Ped"},{"name":"clipInventoryUid","type":"Any*"},{"name":"p2","type":"int"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":["0x2E1202248937775C","0xDCD2A934D65CB497"],"build":"1207","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/WEAPON/_REFILL_AMMO_IN_CLIP","markdownUrl":"https://natives.borderlinerp.com/natives/WEAPON/_REFILL_AMMO_IN_CLIP.md","snippets":{"lua":"local retval, clipInventoryUid = RefillAmmoInClip(ped, p2)","luaInvoke":"local retval, clipInventoryUid = Citizen.InvokeNative(0xDF4A3404D022ADDE, ped, Citizen.PointerValueInt(), p2, Citizen.ResultAsInteger())","js":"const [retval, clipInventoryUid] = RefillAmmoInClip(ped, p2);","jsInvoke":"const [retval, clipInventoryUid] = Citizen.invokeNative('0xDF4A3404D022ADDE', ped, Citizen.pointerValueInt(), p2, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"var clipInventoryUid = new OutputArgument();\nint retval = Function.Call<int>((Hash)0xDF4A3404D022ADDE, ped, clipInventoryUid, p2);\n// clipInventoryUid.GetResult<int>()","notes":["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."]}}