Garry's Mod Wiki

Player:SetAmmo

  Player:SetAmmo( number ammoCount, any ammoType )

Description

Sets the amount of the specified ammo for the player.

Arguments

1 number ammoCount
The amount of ammunition to set.
2 any ammoType
The ammunition type. Can be either number ammo ID or string ammo name.