Garry's Mod Wiki

Revision Difference

numpad.Toggle#517652

<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>⤶ <arg name="key" type="number">The key to press, corresponding to <page>KEY</page></arg>⤶ </args> </function>