GetAspectRatio — FiveM Natives
0xF1307EF624A80D87 · GRAPHICS · all
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
| Name | Type | Description |
|---|---|---|
| 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. |
Returns
float