Garry's Mod Wiki

CUserCmd:ClearButtons

  CUserCmd:ClearButtons()

Description

Removes all keys from the command.

If you are looking to affect player movement, you may need to use CUserCmd:ClearMovement instead of clearing the buttons.