Garry's Mod Wiki



  numpad.Register( string id, function func )


Registers a numpad library action for use with numpad.OnDown and numpad.OnUp


1 string id
The unique id of your action.
2 function func
The function to be executed.

Arguments are:

Player ply - The player who pressed the button

vararg ... - The 4th and all subsequent arguments passed from numpad.OnDown and/or numpad.OnUp

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)

Special Pages



Render Time: 63ms

DB GetPage 38
Generate Html 8
SaveChanges (1) 7
Render Body 0
Render Sidebar 7