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

Function

guiSetInputEnabled

ClientInterface (GUI)Identical to MTA:SA

Gives the keyboard to the interface instead of the game (the character ignores keys and binds do not fire).

Syntax

bool guiSetInputEnabled(bool enabled)

Arguments

enabledbool
true takes the keyboard.

Returns

true on success.

Example

local function openPanel()
    guiSetVisible(win, true)
    showCursor(true)
    guiSetInputEnabled(true)
end

See also