- Documentation
- Client functions
- 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)))