GetScreenResolution

From GT-MP
Jump to: navigation, search
GetScreenResolution
Client-Side Function
System-users.png Client-Side Javascript.png JavaScript

This function will give you the size of the window of GTA 5, but will not represent the client's actual resolution. To get the client's resolution check out getScreenResolutionMaintainRatio().

Syntax

API.getScreenResolution();

NOTE: This function returns data in Size type.

Usage example(s)

var res = API.getScreenResolution();

var mainBrowser = API.createCefBrowser(res.Width, res.Height, true);

References