ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. guiComboBoxSetSelected

Function

guiComboBoxSetSelected

ClientInterface (GUI)Identical to MTA:SA

Selects a drop-down item. -1 clears the selection.

Syntax

bool guiComboBoxSetSelected(gui-combobox comboBox, int itemIndex)

Arguments

comboBoxgui-combobox
The list.
itemIndexint
Item index (from 0).

Returns

true on success.

Example

guiComboBoxSetSelected(cityCombo, 0)