Graphics::getScreenResolution: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
(Added a note for the functions' possibly static return values)
Line 7: Line 7:
===Return value===
===Return value===
*'''object:''' x, y
*'''object:''' x, y
==Example==
The returned object seems to be static.
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="json">
// todo
{
"x": 1280,
"y": 720
}
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==

Revision as of 19:23, 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