vi/raiser
economy
economy, GTA 6 style illustration
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.

PRODUCTION-SHAPED, the reference Lua is validated and written framework-correct for ESX, QBCore, and QBox, ready to drop into your server.
Est. Lua
~106 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 / mostable
$500($150 to $2,000)

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

Effort vs return
intermediate2-4h

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), priced in the $50-389 script band against a corpus of comparable Tebex sellers (median ~$11.85K/mo), 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.