Graphics::getScreenActiveResolution
Returns current screen resolution.
JavaScript
Syntax
mp.game.graphics.getScreenActiveResolution();
Return value
- x: number
- y: number
Example
let x = mp.game.graphics.getScreenActiveResolution().x; // Saves the width of the active resolution in x