Native referenceFiveM

GET_ASPECT_RATIO

0xF1307EF624A80D87 GRAPHICS
FUNCTION SIGNATURE
float GET_ASPECT_RATIO(BOOL physicalAspect);
Property Value
Native Name GET_ASPECT_RATIO
Hash 0xF1307EF624A80D87
Return Type float
Parameters physicalAspect (BOOL)

Description: 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

Parameters

  • physicalAspect (BOOL) — A boolean value. Passing in true returns the physical aspect ratio of the game window. Passing in false returns the aspect ratio of the main game window.
Back to GRAPHICS