Hello!
The majority of FiveM may not know this bug exists, however Grand Theft Auto 5 has a really odd issue where the minimap on monitors with an aspect ratio of more than 1920/1080 (1.777) will align the minimap and a lot of other HUD elements near the middle of the screen, getting progressively worse the higher the aspect ratio is.
This script is meant to resolve this issue by aligning the minimap components more to the left of the screen depending on the aspect ratio.
I don’t have an ultrawide monitor, so I simulated one by setting my resolution to different aspect ratios, including:
2560x(500-1300)
I’m confident that this will work with other aspect ratios, however if you do experience issues please do not hesitate to message me either by submitting a github issue report, DM, reply, or on Discord.
I think the default behavior is intentional and not a bug. I assume their goal was to prevent players from having to turn their head to see elements positioned all the way to the left or to the right if they were using, for example, a triple monitor setup and an ultra-wide aspect ratio.
Nice release though. This probably facilitates making responsive NUI interfaces.
Yeah probably, however I can definitely see cases where it would be unwanted behavior. I may make a ui where you can change the offset of ui components
Hello, I don’t know what you mean by off centers (as there is no center to be off by)
The health and ammo bars are linked to the minimap, that is very odd why they don’t move
A side note - Your DrawText UI must be changed in order to line up with the minimap
It should. Honestly the HUD elements should be aligned with the position of the minimap taken into account already, but this should fix that issue indirectly