System.isFullscreen

From RAGE Multiplayer Wiki
Revision as of 11:58, 13 August 2024 by Shr0x (talk | contribs) (Created page with "{{ClientsideJsFunction}} {{JSContainer| Readonly property, returns whether player's screen is on full screen mode or not. ===Return value=== *''' {{RageType|boolean}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.system.isFullscreen </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> mp.events.add("playerReady", () => { if (mp.system.isFullscreen) { mp.console.logInfo(`Player game is on full screen mode.`); } }) </syntaxhighligh...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Client-Side
Function

 JavaScript



JavaScript Syntax

Readonly property, returns whether player's screen is on full screen mode or not.

Return value

  • boolean

Syntax

mp.system.isFullscreen

Example

mp.events.add("playerReady", () => {
    if (mp.system.isFullscreen) {
        mp.console.logInfo(`Player game is on full screen mode.`);
    }
})


See Also