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

Event

onClientGUIFocus

ClientInterface (GUI)Identical to MTA:SA

A GUI control got focus (e.g. an edit box the player clicks into).

Handler

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

Source

source is the control.

Example

addEventHandler("onClientGUIFocus", root, function()
    outputConsole("Fokus: " .. getElementType(source))
end)

See also