The Lab
WEAPON native

SET_PED_AMMO

returns void3 paramsbuild 1207

Sets the ped's ammo for the weapon weaponHash to ammo.

Signature

C
void SET_PED_AMMO(Ped ped, Hash weaponHash, int ammo); // 0x14E56BC5B5DB6A19 b1207

Parameters

#NameType
1pedPed
2weaponHashHash
3ammoint

Facts

Facts about SET_PED_AMMO
Name
SET_PED_AMMO
Hash
0x14E56BC5B5DB6A19
Namespace
Returns
void
Game build
1207

Examples

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

Lua
Citizen.InvokeNative(0x14E56BC5B5DB6A19, -- SET_PED_AMMO
  PlayerPedId(), -- Ped ped
  GetHashKey("weapon_revolver_cattleman"), -- Hash weaponHash
  0 -- int ammo
)
JavaScript
Citizen.invokeNative("0x14E56BC5B5DB6A19", // SET_PED_AMMO
  PlayerPedId(), // Ped ped
  GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
  0 // int ammo
);
C#
Function.Call((Hash)0x14E56BC5B5DB6A19, // SET_PED_AMMO
  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.