Garry's Mod Wiki

numpad.Deactivate

  numpad.Deactivate( Player ply, number key, boolean isButton = false )

Description

Deactivates numpad key owned by the player

Arguments

1 Player ply
The player whose numpad should be simulated
2 number key
The key to press, corresponding to KEY enum
3 boolean isButton = false
Should this keypress pretend to be a from a gmod_button? (causes numpad.FromButton to return true)