Graphics::getScreenActiveResolution: Difference between revisions

From RAGE Multiplayer Wiki
m (Reverted edits by CocaColaBear (talk) to last revision by Mcfloy)
Line 10: Line 10:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
let x = mp.game.graphics.getScreenActiveResolution(100, 100).x) // Saves the width of the active resolution in x
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Graphics_s_function_c}}
{{Graphics_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 21:59, 22 August 2020

Returns current screen resolution.

Syntax

var {x, y} = mp.game.graphics.getScreenActiveResolution(x, y);

Required Arguments

  • x: int
  • y: int

Return value

  • object: x, y

Example

let x = mp.game.graphics.getScreenActiveResolution(100, 100).x) // Saves the width of the active resolution in x

See also