Garry's Mod Wiki
This hook is predicted. This means that in singleplayer, it will not be called in the Client realm.
Description
Called when a player presses a button.
This will not be called if player has a panel opened with keyboard input enabled, use PANEL:OnKeyCodePressed instead.
See GM:KeyPress for an alternative that uses IN enum. See GM:PlayerButtonUp for the "key release" event.
Arguments
Example
Prints the person who pressed the key.
Example
Prints the person who pressed the key if it is the T key.
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...