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

Function

guiGetText

ClientInterface (GUI)Identical to MTA:SA

Returns a control's text (label, button, field, window title).

Syntax

string guiGetText(element guiElement)

Arguments

guiElementelement
The control.

Returns

The text.

Example

addEventHandler("onClientGUIClick", sendButton, function()
    triggerServerEvent("sendReport", localPlayer, guiGetText(reportMemo))
end, false)

See also