vi/raiser
ui
ui, GTA 6 style illustration
Vaultbeginnerui

Square Minimap + Hide-On-Foot

A framework-agnostic minimap tweak that swaps the radar to a square frame, hides it on foot, and exposes a runtime toggle command, resolution-aware.

PRODUCTION-SHAPED, the reference Lua is validated and written framework-correct for ESX, QBCore, and QBox, ready to drop into your server.
Est. Lua
~47 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25
Unlock price
$199Vault

Unlock all 510 prompts

Profit potential / mosaturated
$250($80 to $1,000)

$50-389 script band, sized for a saturated niche; top sellers clear around $11.85K/mo.

Effort vs return
beginner2-4h

Description

A square minimap + hide-on-foot tweak that replaces the round radar mask with a square frame, hides the minimap when the player is on foot, and toggles that behaviour with a runtime command. The component offsets are resolution-aware so the frame stays aligned across aspect ratios. It's a saturated micro-niche, so this one differentiates on a clean config and toggle.

Prompt Template

You are writing a FiveM resource: a square minimap with hide-on-foot.

🔒 Eyes-only, locked prompt body

The full prompt template and its reference Lua are part of a one-time pack. Pick your depth, both are lifetime access, no subscription, ever.

Core$49one-time
  • 60 prompts + syntax-validated reference Lua
  • Lifetime access, pay once
Most Popular · Best Value
Vault$199one-time
  • All 510 prompts, the full library
  • Per-prompt profit/trend intelligence (CSV + playbook)
  • Lifetime free updates, new niches as the market moves
Get the Vault, $199

$49 for 60 · $199 for all 510 + intelligence, one-time, no subscription.

Expected Output

The reference Lua lives at content/expected-outputs/ui/22-square-minimap-toggle.lua. It waits for the squaremap texture dict before applying the mask, positions the minimap components by aspect…

🔒 Eyes-only, locked prompt body

The full prompt template and its reference Lua are part of a one-time pack. Pick your depth, both are lifetime access, no subscription, ever.

Core$49one-time
  • 60 prompts + syntax-validated reference Lua
  • Lifetime access, pay once
Most Popular · Best Value
Vault$199one-time
  • All 510 prompts, the full library
  • Per-prompt profit/trend intelligence (CSV + playbook)
  • Lifetime free updates, new niches as the market moves
Get the Vault, $199

$49 for 60 · $199 for all 510 + intelligence, one-time, no subscription.

Known Failure Modes & Corrective Prompt

  • Premature texture swap, wait for HasStreamedTextureDictLoaded before AddReplaceTexture.
  • CPU burn, check radar state on a 250ms Wait, not every frame.
  • Single-resolution offsets, derive component positions from GetAspectRatio so ultrawide stays aligned.

Corrective re-prompt: "Guard AddReplaceTexture with while not HasStreamedTextureDictLoaded('squaremap') do Wait(0) end so the mask actually applies. Move the DisplayRadar logic into a Wait(250) loop keyed off IsPedInAnyVehicle(PlayerPedId(), false), and base the SetMinimapComponentPosition offsets on GetAspectRatio so non-16:9 displays line up."

Framework Integration

  • ESX: Layer it under esx_hud, call applySquareMinimap after esx:playerLoaded so it survives HUD re-init.
  • QBCore: Pair with qb-hud; re-apply the mask on hud:client:LoadMap to avoid round-radar flicker.
  • QBox: Re-run applySquareMinimap after the qbx HUD resource starts so the frame isn't overwritten.

Profit Potential

$80-$1000/mo on Tebex (expected ~$250), priced within the $50-389 script band against a corpus of comparable Tebex sellers (median ~$11.85K/mo) for a saturated micro-niche.

Trend Signal

↘ saturated, strategy: Category niche-matrix names 'minimap'; square/hide-on-foot is a mature, saturated micro-niche, differentiate on config.

Sales Angle

Don't sell it standalone, fold it into a HUD pack as the "modern square radar" feature, where the toggle and resolution-awareness justify the bundle. Recommended Tebex price $49.

Difficulty & Ship Time

beginner · ships in 2-4h.