Revision Difference
numpad.OnDown#552003
<function name="OnDown" parent="numpad" type="libraryfunc">
<description>
Calls a function registered with <page>numpad.Register</page> when a player presses specified key.
See for key released action: <page>numpad.OnUp</page>
</description>
<realm>Server</realm>
<file line="174-L187">lua/includes/modules/numpad.lua</file>⤶
<args>
<arg name="ply" type="Player">The player whose numpad should be watched</arg>
<arg name="key" type="number">The key, corresponding to <page>Enums/KEY</page></arg>
<arg name="name" type="string">The name of the function to run, corresponding with the one used in <page>numpad.Register</page></arg>
<arg name="..." type="vararg">Arguments to pass to the function passed to <page>numpad.Register</page>.</arg>
</args>
<rets>
<ret name="" type="number">The impulse ID</ret>
</rets>
</function>