Garry's Mod Wiki

Revision Difference

numpad.OnUp#510455

<function name="OnUp" parent="numpad" type="libraryfunc">⤶ <description>⤶ Calls a function registered with <page>numpad.Register</page> when a player releases specified key.⤶ ⤶ See for key pressed action: <page>numpad.OnDown</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>⤶ </args>⤶ <rets>⤶ <ret name="" type="number">The impulse ID</ret>⤶ </rets>⤶ </function>⤶ ⤶