gta6/prompts
economy
Vaultintermediateeconomy

Pawn Shop — Dynamic Valuation & Haggle

QBCore pawn shop that quotes a fluctuating value per item, resolves a server-side haggle roll, and issues redeemable pawn tickets to reclaim sold loot.

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

Description

A pawn shop where loot sells at a fluctuating, server-quoted value, an optional haggle roll can swing the payout up or down, and each sale issues a pawn ticket the player can redeem later for a small fee. Servers buy it because the haggle gamble and reclaim mechanic add real RP texture that flat-rate sell-shops lack.

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/18-pawn-shop-dynamic-valuation.lua quotes a random swing value, resolves the haggle roll server-side, removes the item before paying, and tracks…

🔒 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

  • Client-side haggle — a cheater always wins; roll math.random on the server.
  • Unverified sale — selling phantom loot; check GetItemByName before paying.
  • Infinite redeem — never clearing the ticket; table.remove it on redeem.

Corrective re-prompt: "Roll the haggle and compute valuation entirely server-side, verify the item is held with GetItemByName before crediting, and remove the pawn ticket from the table on redemption so it cannot be reused."

Framework Integration

ESX: use ESX.GetPlayerFromId, xPlayer.getInventoryItem, removeInventoryItem, and xPlayer.addMoney. QBCore: as written — GetPlayer, GetItemByName, RemoveItem/AddItem, AddMoney/RemoveMoney. QBox: resolve via exports.qbx_core:GetPlayer and move item handling to the ox_inventory exports.

Profit Potential

$150–$2000/mo on Tebex (expected ~$500). [INFERRED] priced in the $50-389 script band against the signal-scraper tebex_snapshot corpus (median seller $11.85K/mo, n=100), scaled to a stable-niche unit estimate.

Trend Signal

stable — corpus: Pawn-shop scripts are a common Tebex economy listing (tebex_topsellers cat:economy); steady demand, quality varies widely.

Sales Angle

Stand out from flat-rate pawn clones with a haggle gamble and redeemable tickets. Recommended Tebex price: $179.

Difficulty & Ship Time

intermediate · ships in 2-4h.