The Lab
WEAPON native

_REFILL_AMMO_IN_CLIP

returns Any3 paramsbuild 1207

Refills the ammo in the clip identified by its inventory UID.

Signature

C
Any _REFILL_AMMO_IN_CLIP(Ped ped, Any* clipInventoryUid, int p2); // 0xDF4A3404D022ADDE b1207

Parameters

#NameType
1pedPed
2clipInventoryUidAny* (out pointer)
3p2int

Facts

Facts about _REFILL_AMMO_IN_CLIP
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.

Lua
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)
JavaScript
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)
C#
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>();
All WEAPON natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.