Garry's Mod Wiki

Garry's Mod Wiki

  numpad.Register( string id, function func )

Description

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

Arguments

1 string id
The unique id of your action.
2 function func
The function to be executed.
Function argument(s):
1 Player ply - The player who pressed the button
2 vararg data - The 4th and all subsequent arguments passed from numpad.OnDown and/or numpad.OnUp.
Function return value(s):
1 boolean data - 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)

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...