GetScreenResolutionMaintainRatio

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

This function will give you the actual resolution so to speak, that can be combined with drawText() or drawRectangle(), unlike getScreenResolution().


Syntax

API.getScreenResolutionMaintainRatio();

NOTE: This function returns data in SizeF type.

Usage example(s)

API.getScreenResolutionMaintainRatio();

References