Graphics::getScreenResolution: Difference between revisions

From RAGE Multiplayer Wiki
(Added a note for the functions' possibly static return values)
m (Improved the return value formatting)
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
===Return value===
===Return value===
*'''object:''' x, y
*'''object:''' x, y
The returned object seems to be static.
{{info|The returned object seems to be static.
<syntaxhighlight lang="json">
<syntaxhighlight lang="json">
{
{ "x": 1280, "y": 720 }
"x": 1280,
</syntaxhighlight>}}
"y": 720
}
</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]]

Latest revision as of 19:35, 12 November 2019

int screenresx,screenresy;
GET_SCREEN_RESOLUTION(&screenresx,&screenresy);

Syntax

mp.game.graphics.getScreenResolution(x, y);

Required Arguments

  • x: int
  • y: int

Return value

  • object: x, y

The returned object seems to be static.

{ "x": 1280, "y": 720 }

See also