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

Function

setBrowserRenderingPaused

ClientBrowserIdentical to MTA:SA

Pauses or resumes page rendering. A paused page does not load the CPU while it is hidden.

Syntax

bool setBrowserRenderingPaused(browser webBrowser, bool paused)

Arguments

webBrowserbrowser
The browser.
pausedbool
true pauses.

Returns

true on success.

Example

local visible = false
bindKey("F2", "down", function()
    visible = not visible
    setBrowserRenderingPaused(browser, not visible)
end)

See also