Useful snippet: getting the top left of the minimap in screen coordinates

Originally published at:

SetScriptGfxAlign(string.byte(‘L’), string.byte(‘B’)) local minimapTopX, minimapTopY = GetScriptGfxPosition(-0.0045, -(0.002 + 0.188888)) ResetScriptGfxAlign() local w, h = GetActiveScreenResolution() return { w * minimapTopX, h * minimapTopY } This could be useful if you want to align things to NUI or other screen-space draws, and works on pretty much any aspect ratio. The magic numbers here are the…


Hopefully this serves as a more reliable method than

Especially on really weird resolution

1 Like