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

Function

isBrowserGPUEnabled

Checks whether pages are drawn by the graphics card.

Syntax

bool isBrowserGPUEnabled([browser webBrowser = nil])

Arguments

webBrowserbrowser, optional = nil
The browser.Not in MTA:SA

Differences from MTA:SA

  • In MTA:SA this function is server-side only.
  • Arguments in a different colour differ from MTA:SA.

In MTA:SA

isBrowserGPUEnabled()

Returns

true if the graphics card draws them.

Example

outputConsole("GPU: " .. tostring(isBrowserGPUEnabled(browser)))