#Hey, can anyone help me out?

1 messages · Page 1 of 1 (latest)

pure junco
#

Hey, can anyone help me out? I've redesigned my ox_inventory, but unfortunately, on a 1440p screen, it's all messed up. Can someone make it work on resolutions higher than 1080p? Please.

inner bay
#

i experienced this issue myself recently with a custom HUD.

not sure if its the correct way to resolve but i ended up using @media i believe to extract the screen width then just had different offsets applied based on screen size.

tried to work out a formula to have it dynamic but that didnt work all too well.

so i just have like EG

offset1080 : 10px
offset2160 : 15px
offset3440 : 25px

realistically the likelyhood of people playing on monitors smaller or larger than that are slim as gta doesnt natively support aspect ratio higher that 21:9

if it was inbetween IE 1280 or something strange i just take lower as it will be close enough.

like i say, not sure if this is correct, or simplest, but it worked for me 🤷‍♂️

(edit: the thing i was trying to fix placement on was the health bar relative to the minimap, so thats why a dynamic scalar didnt work to well as the way gta moves it map is really weird)

balmy blade
#

just make your things responsive

vivid harness
#

My guy is hardcoding resolution changes

#

😭

#

Instead of using pixels use vw and vh. This will scale with resolution

#

@inner bay

inner bay
#

maybe read the context homie