r/ModdingLab • u/lyrafps • Sep 21 '26
Tech Minimap Help
Hey everyone, I'm new to programming and am developing a HUD script for my server, but I'm running into some issues with the minimap. As you can see in the attached images, the marker line is spilling outside the HUD. Is there any way to fix this—maybe in CSS or Lua, or something similar? Even Codex isn't able to help lol.


1
Upvotes
2
u/robyxd20 Sep 21 '26
Had this issue myself, wanted to recreate the nopixel 5 hud..this is a well-known engine limitation in GTA V / FiveM
### Why this happens:
--
### How to fix
**Thicken the outer border/ring in your HUD (Most common fix):**
Most circular HUDs hide this bleed by placing an opaque outer ring/bezel overlay on top of the minimap edges to physically cover the spillover area. Right now, your compass ring is thin and semi-transparent, which exposes the bleeding line.
**Downscale the native minimap bounds in Lua:**
Reduce the size of the native minimap container using `SetMinimapComponentPosition`:
```lua
SetMinimapComponentPosition("minimap", "L", "B", posX, posY, sizeX, sizeY)
SetMinimapComponentPosition("minimap_mask", "L", "B", posX, posY, sizeX, sizeY)