ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client events
  3. onClientGUITabSwitched

Event

onClientGUITabSwitched

The player switched a tab in a GUI tab panel.

Handler

addEventHandler("onClientGUITabSwitched", root, function() ... end)

Differences from MTA:SA

  • These MTA:SA parameters are not here: element theElement

In MTA:SA

function(element theElement)

Source

source is the selected tab.

Example

addEventHandler("onClientGUITabSwitched", root, function()
    outputConsole("Zakładka: " .. guiGetText(source))
end)

See also