ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. dxSetAspectRatioAdjustmentEnabled

Function

dxSetAspectRatioAdjustmentEnabled

ClientDrawing (dx)Identical to MTA:SA

Turns on drawing aspect ratio correction on wide screens. The value is stored for compatibility with existing scripts (dxIsAspectRatioAdjustmentEnabled) but does not change drawing; compute positions from guiGetScreenSize.

Syntax

bool dxSetAspectRatioAdjustmentEnabled(bool enabled [, float sourceRatio])

Arguments

enabledbool
The setting.
sourceRatiofloat, optional
Source ratio.

Returns

true.

Example

dxSetAspectRatioAdjustmentEnabled(true, 4 / 3)

See also