Garry's Mod Wiki

Revision Difference

numpad.Toggle#510452

<function name="Toggle" parent="numpad" type="libraryfunc">⤶ <description>Either runs <page>numpad.Activate</page> or <page>numpad.Deactivate</page> depending on the key's current state</description>⤶ <realm>Server</realm>⤶ <args>⤶ <arg name="ply" type="Player">The player whose numpad should be simulated</arg>⤶ <arg name="key" type="number">The key to press, corresponding to &lt;page&gt;KEY&lt;/page&gt;</arg>⤶ </args>⤶ </function>⤶ ⤶