numpad.OnDown
From GMod Wiki
| Function | |
| Syntax | numpad.OnDown( Player  ply, Number  key, String  name, ... ) Where is this used? | 
| Description: | |
| Adds a function to call when a player presses a key on the number pad. | |
| Returns: | Number The index of the "impulse" that was added. | 
| Part of Library: | Numpad | 
| Realm: |  | 
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Numpad.OnDown]Numpad.OnDown [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] | 
	
Examples
| Description | N/A | ||
|---|---|---|---|
| Used on |   | ||
| Code | 
 | ||
| Output | N/A | 
Detailed Description
- Player ply - The Player object who will be able to trigger this impulse. This is usually the owner of the SWEP, STOOL or SENT that called numpad.OnDown. In the case of a gmod_button, this is the player who pressed the button, not the owner.
- Number key - If it's an integer key, use the number, or, for special keys, see here:
10 - . (period)
11 - enter
12 - +
13 - - (minus)
14 - *
15 - /
- String name - The name of the function to call. This has been previously registered with the numpad.Register function.
- ... - Variable argument list (optional). The arguments you pass here will be passed as arguments to the registered function. In addition, the numerical player index (as returned from a call to Player.UniqueID) will be appended as the final argument.

 
			
			