getIsWidescreen
GET_IS_WIDESCREEN0x30CF4BDA4FCB1905The GTA V native GET_IS_WIDESCREEN of the GRAPHICS namespace, as LS:MP client scripts call it: the global function getIsWidescreen, in JavaScript and in Lua.
getIsWidescreen(): booleangetIsWidescreen(): booleanUsage
JavaScript
const result = getIsWidescreen();Lua
local result = getIsWidescreen()Parameters
None.
Returns
BOOL JavaScript boolean, Lua booleanNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Setting Aspect Ratio Manually in game will return:
false - for Narrow format Aspect Ratios (3:2, 4:3, 5:4, etc. )
true - for Wide format Aspect Ratios (5:3, 16:9, 16:10, etc. )
Setting Aspect Ratio to "Auto" in game will return "false" or "true" based on the actual set Resolution Ratio.
Reference
- Namespace
- Graphics GRAPHICS
- In the game
BOOL GET_IS_WIDESCREEN()- Hash
0x30CF4BDA4FCB1905