Garry's Mod Wiki

DBinder:SetSelectedNumber

  DBinder:SetSelectedNumber( number keyCode )

Description

Sets the current key bound by the DBinder, and updates the button's text as well as the ConVar.

Arguments

1 number keyCode
The key code of the key to bind. See Enums/KEY.