Garry's Mod Wiki

Revision Difference

numpad.OnDown#517655

<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> <args> <arg name="ply" type="Player">The player whose numpad should be watched</arg> <arg name="key" type="number">The key, corresponding to &lt;page&gt;KEY&lt;/page&gt;</arg>⤶ <arg name="name" type="string">The name of the function to run, corresponding with the one used in &lt;page&gt;numpad.Register&lt;/page&gt;</arg>⤶ <arg name="..." type="vararg">Arguments to pass to the function passed to &lt;page&gt;numpad.Register&lt;/page&gt;.</arg> <arg name="key" type="number">The key, corresponding to <page>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>