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

Event

onClientGUIChanged

The text in a GUI edit box or memo changed.

Handler

addEventHandler("onClientGUIChanged", 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 control.

Example

local edit = guiCreateEdit(20, 20, 200, 30, "", false)
addEventHandler("onClientGUIChanged", edit, function()
    outputConsole("Tekst: " .. guiGetText(edit))
end)

See also