Jump to content

Graphics::getScreenActiveResolution

From RAGE Multiplayer Wiki
Revision as of 21:59, 22 August 2020 by Neugtobi21 (talk | contribs) (→Example)

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