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

Function

getBrowserProperty

ClientBrowserIdentical to MTA:SA

Returns a browser property. "mobile" (phone view) is supported.

Syntax

string getBrowserProperty(browser webBrowser, string key)

Arguments

webBrowserbrowser
The browser.
keystring
Property name.

Returns

"1" or "0" for "mobile", false for other names.

Example

if getBrowserProperty(browser, "mobile") == "1" then
    outputChatBox("Widok telefonu")
end

See also