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

Function

guiSetProperty

ClientInterface (GUI)Identical to MTA:SA

Sets a control property. Supported: "CloseButtonEnabled" (the window close button) and "AlwaysOnTop"; other names are stored for the script.

Syntax

bool guiSetProperty(element guiElement, string property, mixed value)

Arguments

guiElementelement
The control.
propertystring
The name.
valuemixed
The value.

Returns

true on success.

Example

guiSetProperty(win, "CloseButtonEnabled", "false")