Garry's Mod Wiki

Revision Difference

GM:PlayerButtonDown#511104

<function name="PlayerButtonDown" parent="GM" type="hook">⤶ <ishook>yes</ishook>⤶ <description>Called when a player presses a button.</description>⤶ <realm>Shared</realm>⤶ <predicted>Yes</predicted>⤶ <args>⤶ <arg name="ply" type="Player">Player who pressed the button</arg>⤶ <arg name="button" type="number">The button, see &lt;page&gt;BUTTON_CODE&lt;/page&gt;</arg>⤶ </args>⤶ </function>⤶ ⤶