_REFILL_AMMO_IN_CLIP
Refills the ammo in the clip identified by its inventory UID.
Signature
Any _REFILL_AMMO_IN_CLIP(Ped ped, Any* clipInventoryUid, int p2); // 0xDF4A3404D022ADDE b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | clipInventoryUid | Any* (out pointer) |
| 3 | p2 | int |
Facts
| Name | _REFILL_AMMO_IN_CLIP |
|---|---|
| Hash | 0xDF4A3404D022ADDE |
| Namespace | |
| Returns | Any |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result, clipInventoryUid = Citizen.InvokeNative(0xDF4A3404D022ADDE, -- _REFILL_AMMO_IN_CLIP
PlayerPedId(), -- Ped ped
Citizen.PointerValueInt(), -- Any* clipInventoryUid
0, -- int p2
Citizen.ResultAsInteger()
)
print(result, clipInventoryUid)const [result, clipInventoryUid] = Citizen.invokeNative("0xDF4A3404D022ADDE", // _REFILL_AMMO_IN_CLIP
PlayerPedId(), // Ped ped
Citizen.pointerValueInt(), // Any* clipInventoryUid
0, // int p2
Citizen.resultAsInteger()
);
console.log(result, clipInventoryUid)var clipInventoryUidArg = new OutputArgument();
int result = Function.Call<int>((Hash)0xDF4A3404D022ADDE, // _REFILL_AMMO_IN_CLIP
API.PlayerPedId(), // Ped ped
clipInventoryUidArg, // Any* clipInventoryUid
0 // int p2
);
int clipInventoryUid = clipInventoryUidArg.GetResult<int>();Related WEAPON natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.