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

Function

guiComboBoxGetSelected

ClientInterface (GUI)Identical to MTA:SA

Returns the selected item index (from 0), or -1 when nothing is selected.

Syntax

int guiComboBoxGetSelected(gui-combobox comboBox)

Arguments

comboBoxgui-combobox
The list.

Returns

Item index.

Example

if guiComboBoxGetSelected(cityCombo) == -1 then
    guiNotify("Wybierz miasto", "warning")
end