Jump to content

Graphics::getScreenResolution: Difference between revisions

From RAGE Multiplayer Wiki
Meta (talk | contribs)
Added a note for the functions' possibly static return values
Meta (talk | contribs)
m Some formatting for the return value note
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">
{
{

Revision as of 19:27, 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
{
	"x": 1280,
	"y": 720
}

See also