Garry's Mod Wiki

DComboBox:ChooseOption

  DComboBox:ChooseOption( string value, number index )

Description

Selects a combo box option by its index and changes the text displayed at the top of the combo box.

Arguments

1 string value
The text to display at the top of the combo box.
2 number index
The option index.