gta6/prompts
economy
Coreintermediateeconomy

Shop / Store — Buy Items with Cash or Bank

QBCore marker store where players open a menu near coords and buy catalog items paying from cash or bank, validated server-side.

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
~65 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-24

Description

A QBCore general store: the player approaches a marker, presses E, and a NUI catalog opens. They pick an item, choose cash or bank, and the server checks funds, removes money, and grants the item. This is the standard buy-side of the economy for convenience stores, gun shops, and clothing stands.

Prompt Template

You are writing a FiveM resource for qb-core.

🔒 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 at content/expected-outputs/economy/04-shop-buy-items.lua draws a proximity marker + 3D text, opens a NUI catalog, and on purchase the server looks up its own price table, clamps…

🔒 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

  • Client-priced purchases — taking price from the NUI payload lets a cheater set it to 0. Require a server-owned price table.
  • Unclamped quantity — a giant qty buys absurd stacks or overflows. Require a math.max/math.min clamp.
  • Client inventory writesAddItem on the client is not authoritative. Require it server-side.
  • Account spoofing — an arbitrary account string can hit unexpected balances. Whitelist to cash/bank.

Integration Notes

client.lua handles the marker + NUI; server.lua validates and grants. Declare both in fxmanifest.lua plus the ui_page/files for the NUI. Depends on qb-core and your inventory resource for AddItem. Test: stand on the marker, buy 2 water on bank, confirm bank drops by 10 and two water appear in inventory.

Profit Potential

$250–$3500/mo on Tebex (expected ~$900). [INFERRED] priced inside the $50-389 standalone-script band against the signal-scraper corpus (tebex_snapshot n=100, median seller $11.85K/mo) for a rising economy niche.

Trend Signal

rising — [INFERRED] banking/economy is core RP-server infrastructure, steady demand.

Sales Angle

Position as a one-script storefront for QBCore/QBox — config-driven catalogs, cash-or-bank checkout, fully server-priced. Resell it as the backbone for every shop on the map. Recommended Tebex price: $69.

Difficulty & Ship Time

intermediate · ships in 3-5h.