Garry's Mod Wiki

Revision Difference

numpad.Toggle#552007

<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> <file line="145-L154">lua/includes/modules/numpad.lua</file>⤶ <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 <page>Enums/KEY</page></arg> </args> </function>