The Lab
WEAPON native

SET_AMMO_IN_CLIP

returns BOOL3 paramsbuild 1207

Sets the number of rounds in the clip of the ped's weapon weaponHash. Returns true on success.

Signature

C
BOOL SET_AMMO_IN_CLIP(Ped ped, Hash weaponHash, int ammo); // 0xDCD2A934D65CB497 b1207

Parameters

#NameType
1pedPed
2weaponHashHash
3ammoint

Facts

Facts about SET_AMMO_IN_CLIP
Name
SET_AMMO_IN_CLIP
Hash
0xDCD2A934D65CB497
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0xDCD2A934D65CB497, -- SET_AMMO_IN_CLIP
  PlayerPedId(), -- Ped ped
  GetHashKey("weapon_revolver_cattleman"), -- Hash weaponHash
  0 -- int ammo
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xDCD2A934D65CB497", // SET_AMMO_IN_CLIP
  PlayerPedId(), // Ped ped
  GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
  0, // int ammo
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xDCD2A934D65CB497, // SET_AMMO_IN_CLIP
  API.PlayerPedId(), // Ped ped
  (uint)API.GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
  0 // int ammo
);
All WEAPON natives

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