[DEV RESOURCE] Ultrawide Minimap Positioner

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.

Example

Old:


New:

Download

16 Likes

You are life saver man :heart:

1 Like

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.

4 Likes

I imagine this is exactly why. It’s better to see the minimap at a glance.

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

1 Like

Hey, I tested the ressource out and I have a few problems:

-the map seems like it is offcentered
-the healthbar does not move
-same for the armorbar

I don’t think I have any scripts which also manage the minimap.

1 Like

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

how do we add this in gta? like where do you put it to get it to work

Good question I do not know either.

This is not for GTA, this is for FiveM. Currently it is not possible to add this script to singleplayer GTA

how on fivem

How do I install this?

This is a dev resource. To install it, just include the client.lua file in your fxmanifest.lua file

1 Like

will this fix my issue that I am having with my ultrawide monitor and resources not linning up correctly?

I run a 3440x1440p monitor

If I set my game to 1080 window mode it works correctly but any other resolution and the resources don’t line up

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

So do I just install the client.lua on every resource I use that does anything with the HUD/Ui ?

No. The resource is just a script that repositions the minimap, so it doesn’t matter which resource the script is in

can you be more clear? how do people install this?

Just add the file as a client script to literally any resource and it will work.

1 Like

For those struggling with this OP’s instruction know that there’s an easier way:

OR

1 Like