Garry's Mod Wiki

Revision Difference

GM:HUDWeaponPickedUp#553143

<function name="HUDWeaponPickedUp" parent="GM" type="hook"> <ishook>yes</ishook>⤶ <description>Called when a weapon has been picked up. Override to disable the default HUD notification.</description> <realm>Client</realm> <predicted>No</predicted>⤶ <args> <arg name="weapon" type="Weapon">The picked up weapon</arg> </args> </function> <example> <code>hook.Add( "HUDWeaponPickedUp", "WeaponPickedUp", function( weapon ) -- You would use HUDPaint or DFrame end )</code> </example>