Jump to content

Gui.isGpuRenderingEnabled

From RAGE Multiplayer Wiki
Revision as of 15:59, 22 February 2023 by DevMarvin (talk | contribs) (added alert)

Error creating thumbnail: Unable to save thumbnail to destination This function was added with the update of 05.02.2023, and may possibly have been removed again.

Function to return whether the player has activated the setting 'Acclerated CEF rendering'.

Syntax

mp.gui.isGpuRenderingEnabled;

Return value

  • Boolean

Example

Client-Side
let isGpuRenderingEnabled = mp.gui.isGpuRenderingEnabled;
mp.gui.chat.push("GPU Rendering Enabled: " + isGpuRenderingEnabled);

See also