The Lab
WEAPON native

_ADD_AMMO_TO_PED

returns void4 paramsbuild 1207

Adds amount rounds of ammo for the weapon weaponHash to the ped, tagged with the reason hash addReason.

Signature

C
void _ADD_AMMO_TO_PED(Ped ped, Hash weaponHash, int amount, Hash addReason); // 0xB190BCA3F4042F95 b1207

Parameters

#NameType
1pedPed
2weaponHashHash
3amountint
4addReasonHash

Facts

Facts about _ADD_AMMO_TO_PED
Name
_ADD_AMMO_TO_PED
Hash
0xB190BCA3F4042F95
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(0xB190BCA3F4042F95, -- _ADD_AMMO_TO_PED
  PlayerPedId(), -- Ped ped
  GetHashKey("weapon_revolver_cattleman"), -- Hash weaponHash
  0, -- int amount
  GetHashKey("name") -- Hash addReason
)
JavaScript
Citizen.invokeNative("0xB190BCA3F4042F95", // _ADD_AMMO_TO_PED
  PlayerPedId(), // Ped ped
  GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
  0, // int amount
  GetHashKey("name") // Hash addReason
);
C#
Function.Call((Hash)0xB190BCA3F4042F95, // _ADD_AMMO_TO_PED
  API.PlayerPedId(), // Ped ped
  (uint)API.GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
  0, // int amount
  (uint)API.GetHashKey("name") // Hash addReason
);
All WEAPON natives

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