Garry's Mod Wiki

Revision Difference

GM:HUDItemPickedUp#560082

<function name="HUDItemPickedUp" parent="GM" type="hook"> <description>Called when an item has been picked up. Override to disable the default HUD notification.</description> <realm>Client</realm> <args> <arg name="itemName" type="string">Name of the picked up item</arg> </args> </function> <example> <code>hook.Add( "HUDItemPickedUp", "ItemPickedUp", function( itemName ) -- You would use HUDPaint or DFrame⤶ -- Register the addition or create a Panel here⤶ end )</code> </example>