Garry's Mod Wiki

Revision Difference

GM:HUDAmmoPickedUp#544266

<function name="HUDAmmoPickedUp" parent="GM" type="hook"> <ishook>yes</ishook> <description>Called when the client has picked up ammo. Override to disable default HUD notification.</description> <realm>Client</realm> <predicted>No</predicted> <args> <arg name="itemName" type="string">Name of the item (ammo) picked up</arg> <arg name="amount" type="number">Amount of the item (ammo) picked up</arg> </args> </function> ⤶ <example>⤶ <code>hook.Add( "HUDAmmoPickedUp", "AmmoPickedUp", function( itemName, amount )⤶ -- You would use HUDPaint or DFrame⤶ end )</code>⤶ </example>⤶