Jump to content

Gui.isGpuRenderingEnabled: Difference between revisions

From RAGE Multiplayer Wiki
DevMarvin (talk | contribs)
update
DevMarvin (talk | contribs)
added alert
Line 1: Line 1:
{{Note|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'.
Function to return whether the player has activated the setting 'Acclerated CEF rendering'.
==Syntax==
==Syntax==

Revision as of 15:59, 22 February 2023

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