Garry's Mod Wiki

numpad.Toggle

  numpad.Toggle( Player ply, number key )

Description

Either runs numpad.Activate or numpad.Deactivate depending on the key's current state

Arguments

1 Player ply
The player whose numpad should be simulated
2 number key
The key to press, corresponding to KEY enum