The Lab
WEAPON native

SET_PED_INFINITE_AMMO

returns void3 paramsbuild 1207

Enables or disables infinite ammo for the ped's weapon weaponHash.

Signature

C
void SET_PED_INFINITE_AMMO(Ped ped, BOOL toggle, Hash weaponHash); // 0x3EDCB0505123623B b1207

Parameters

#NameType
1pedPed
2toggleBOOL
3weaponHashHash

Facts

Facts about SET_PED_INFINITE_AMMO
Name
SET_PED_INFINITE_AMMO
Hash
0x3EDCB0505123623B
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(0x3EDCB0505123623B, -- SET_PED_INFINITE_AMMO
  PlayerPedId(), -- Ped ped
  false, -- BOOL toggle
  GetHashKey("weapon_revolver_cattleman") -- Hash weaponHash
)
JavaScript
Citizen.invokeNative("0x3EDCB0505123623B", // SET_PED_INFINITE_AMMO
  PlayerPedId(), // Ped ped
  false, // BOOL toggle
  GetHashKey("weapon_revolver_cattleman") // Hash weaponHash
);
C#
Function.Call((Hash)0x3EDCB0505123623B, // SET_PED_INFINITE_AMMO
  API.PlayerPedId(), // Ped ped
  false, // BOOL toggle
  (uint)API.GetHashKey("weapon_revolver_cattleman") // Hash weaponHash
);
All WEAPON natives

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