isBrowserGPUEnabled | Multi Theft Auto: Wiki Skip to content

isBrowserGPUEnabled

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function checks if the client has the Enable GPU rendering setting enabled, which allows the usage of things like WebGL in browsers.

Note

This is a global setting, not specific to any browser instance and can only be changed by the client.

OOP Syntax Help! I don't understand this!

  • Variable: .gpuEnabled

Syntax

bool isBrowserGPUEnabled ( )

Returns

  • bool: result

Returns true if the client has browser GPU rendering enabled, false otherwise.

Code Examples

Script Example Missing

Function isBrowserGPUEnabled needs a script example. Help out by writing one.

Contribution guidelines