gta6/prompts
ui
Coreadvancedui

Inventory Grid UI (NUI)

An ESX NUI inventory grid: open with a key, fetch items from the server, and drop items through a server-validated callback.

NON-TESTÉ — the reference Lua is syntax-validated, not run in a live FiveM server. Adapt and test on your own dev server before shipping.
Est. Lua
~71 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-24

Description

A grid inventory UI for ESX built on NUI. Pressing I opens the grid, the client asks the server for the player's current items, and the server replies with the authoritative list. Dropping an item routes through an NUI callback to a server event that re-validates the count against getInventoryItem before removing anything, so spoofed messages can't duplicate items.

Prompt Template

You are writing a FiveM resource: an NUI inventory grid for esextended…

🔒 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/09-inventory-grid.lua.

🔒 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

  • Trusting client counts — always re-check getInventoryItem(...).count server-side before removing; the NUI message is attacker-controlled.
  • Stuck focus — release with SetNuiFocus(false,false) on every close path.
  • Client-built list — fetch items from the server so counts stay authoritative and in sync.
  • Nil xPlayer — guard ESX.GetPlayerFromId(source) before touching the inventory.

Integration Notes

  • Split into real client.lua and server.lua; list both plus the ui_page / files {} in fxmanifest.lua, with es_extended as a dependency.
  • Requires es_extended (uses getInventory/getInventoryItem/removeInventoryItem).
  • Test on a dev server: give yourself items, press I, confirm the grid matches your inventory, drop one, and verify the server count decremented.

Profit Potential

$250–$3000/mo on Tebex (expected ~$800). [INFERRED] upper of the $50-389 band (tebex_snapshot, median seller $11.85K/mo, n=100); inventory UIs are high-value and trust-sensitive (server-side validation), commanding the top ticket of the UI set.

Trend Signal

stable — [INFERRED] HUD/UI utilities are always-needed but commoditized.

Sales Angle

Sell as a server-authoritative ESX inventory grid with anti-dupe drop validation — the highest-value item in this UI set. Recommend $129 on Tebex.

Difficulty & Ship Time

advanced · ships in 1 day.