Graphics::getScreenResolution

From RAGE Multiplayer Wiki

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