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

Function

guiGetSelectedTab

ClientInterface (GUI)Identical to MTA:SA

Returns the selected tab of a panel.

Syntax

gui-tab guiGetSelectedTab(gui-tabpanel tabPanel)

Arguments

tabPanelgui-tabpanel
The panel.

Returns

The tab or false.

Example

if guiGetSelectedTab(tabs) == tabCars then
    outputChatBox("Zakładka pojazdów")
end