manups4e/AesirUtils — reverse-engineered prompt
Reverse engineered prompt
Build me a standalone FiveM Lua utility that makes HUD positioning in GTA V actually reliable. I want it to use the game’s real anchoring and safe zone behavior instead of the usual guessed values, so custom HUD, rectangles, sprites, and NUI elements can be placed accurately on any resolution. It should work properly on ultrawide screens like 21:9 and 32:9, and also behave correctly on lower or higher resolutions without me having to retune numbers.
Please include simple exports for getting anchored screen coordinates from alignments like left, right, top, bottom, plus converters between pixel, normalized screen, and Scaleform coordinates and sizes. I also want a way to move and scale the minimap safely while still respecting the game’s safe zone rules.
Keep it lightweight and usable as a drop in resource with clear example usage, especially for positioning a HUD element and converting mouse clicks to Scaleform space. If anything is unclear, check current FiveM docs and common GTA V HUD behavior online.
Want more depth? Deep Reverse