Hey, I’m currently making a simple HUD for my server, what’s the best way to find the screen coordinates? how do I know where to place the HUD? I might be sounding really dumb
Vidarr
February 8, 2025, 10:28am
2
Look for fixed positions.
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
Gege_03
February 21, 2025, 5:29pm
3
Alternatively, if you are using natives over HTML and CSS, such as DrawRect
, look into the minimap anchor resource:
This is a utility script for FiveM that can calculate the position of the minimap.
For widescreen support, consider adding these changes too:
glitchdetector:master
← Beyond-Redline-Racing:master
opened 04:41PM - 08 Jul 21 UTC
It's based on https://cookbook.fivem.net/2019/08/12/useful-snippet-getting-the-t… op-left-of-the-minimap-in-screen-coordinates/
Also tested it with the Example code you provided,
I've made an album with some examples: https://imgur.com/a/QCjD9pU testing the changes