Gui.isGpuRenderingEnabled: Difference between revisions
(Created page with "Function to return whether the player has activated the setting 'Acclerated CEF rendering'. ==Syntax== <syntaxhighlight lang="javascript">mp.gui.isGpuRenderingEnabled();</synt...") |
(update) |
||
| Line 1: | Line 1: | ||
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== | ||
<syntaxhighlight lang="javascript">mp.gui.isGpuRenderingEnabled | <syntaxhighlight lang="javascript">mp.gui.isGpuRenderingEnabled;</syntaxhighlight> | ||
===Return value=== | ===Return value=== | ||
* {{RageType|Boolean}} | * {{RageType|Boolean}} | ||
| Line 7: | Line 7: | ||
{{ClientsideCode| | {{ClientsideCode| | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
mp.gui.chat.push("GPU Rendering Enabled: " + | let isGpuRenderingEnabled = mp.gui.isGpuRenderingEnabled; | ||
mp.gui.chat.push("GPU Rendering Enabled: " + isGpuRenderingEnabled); | |||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} | ||
Revision as of 22:03, 5 February 2023
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);