The Lab
WEAPON native

_REMOVE_AMMO_FROM_PED

returns void4 paramsbuild 1207

Removes amount rounds of ammo for the weapon weaponHash from the ped, tagged with removeReason.

Signature

C
void _REMOVE_AMMO_FROM_PED(Ped ped, Hash weaponHash, int amount, Hash removeReason); // 0xF4823C813CB8277D b1207

Parameters

#NameType
1pedPed
2weaponHashHash
3amountint
4removeReasonHash

Facts

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

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