Revision Difference
numpad.Register#516752
<function name="Register" parent="numpad" type="libraryfunc">
	<description>Registers a numpad library action for use with <page>numpad.OnDown</page> and <page>numpad.OnUp</page></description>
	<realm>Server</realm>
	<args>
		<arg name="id" type="string">The unique id of your action.</arg>
		<arg name="func" type="function">The function to be executed.

Arguments are:&amp;lt;br&amp;gt;
<page>Player</page> ply - The player who pressed the button&amp;lt;br&amp;gt;
<page>vararg</page> ... - The 4th and all subsequent arguments passed from <page>numpad.OnDown and/or {{LibraryFunction|numpad|OnUp</page></arg>⤶
	</args>
</function>
⤶
<br/>⤶
⤶
{{Arg⤶
|type=function⤶
|name=func⤶
|desc=The function to be executed.⤶
⤶
Arguments are:<br/>⤶
<page>Player</page> ply - The player who pressed the button<br/>⤶
<page>vararg</page> ... - The 4th and all subsequent arguments passed from <page>numpad.OnDown and/or {{LibraryFunction|numpad|OnUp</page>}}<br/>⤶
<br/>
Returning **false** in this function will remove the listener which triggered this function (example: return false if one of your varargs is an entity which is no longer valid)
}}
			Garry's Mod 
		
			Rust 
		
			Steamworks 
		
			Wiki Help