- Documentation
- Client events
- 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)