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

Function

guiFocus

ClientInterface (GUI)Identical to MTA:SA

Focuses a control, so typing goes to it.

Syntax

bool guiFocus(element guiElement)

Arguments

guiElementelement
The control.

Returns

true on success.

Example

local edit = guiCreateEdit(20, 20, 260, 30, "", false)
showCursor(true)
guiFocus(edit)

See also