Garry's Mod Wiki

GM:HUDAmmoPickedUp

  GM:HUDAmmoPickedUp( string itemName, number amount )

Description

Called when the client has picked up ammo. Override to disable default HUD notification.

Arguments

1 string itemName
Name of the item (ammo) picked up
2 number amount
Amount of the item (ammo) picked up

Example

hook.Add( "HUDAmmoPickedUp", "AmmoPickedUp", function( itemName, amount ) -- You would use HUDPaint or DFrame end )