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

Function

guiSetVisible

ClientInterface (GUI)Identical to MTA:SA

Shows or hides a control together with its children.

Syntax

bool guiSetVisible(element guiElement, bool state)

Arguments

guiElementelement
The control.
statebool
true shows it.

Returns

true on success.

Example

local win = guiCreateWindow(100, 100, 300, 200, "Sklep", false)
guiSetVisible(win, false)