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

Function

guiGetVisible

ClientInterface (GUI)Identical to MTA:SA

Checks whether a control is visible.

Syntax

bool guiGetVisible(element guiElement)

Arguments

guiElementelement
The control.

Returns

true if visible.

Example

bindKey("F1", "down", function()
    local show = not guiGetVisible(helpWin)
    guiSetVisible(helpWin, show)
    showCursor(show)
end)