Namespace: GRAPHICSAPI set: clientGame: gta5editImprove GET_ASPECT_RATIO
// GetAspectRatio
float GET_ASPECT_RATIO(BOOL physicalAspect);
Returns: The aspect ratio of the game window as a floating-point number.
This native retrieves the aspect ratio of the game window. If physicalAspect
is true
, it returns the physical aspect ratio of the game window, which is useful for 3x1 modes. Otherwise, it returns the aspect ratio of the main game window, considering any custom overrides from the settings menu.
NativeDB Introduced: v323
Old name: _GET_SCREEN_ASPECT_RATIO
Old name: _GET_ASPECT_RATIO