Garry's Mod Wiki

numpad.Activate

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

Description

Activates numpad key owned by the player

Arguments

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