gta6/prompts
crafting
Vaultadvancedcrafting

Item Enhancement & Tier Upgrading

QBCore/QBox risk-reward upgrade loop: spend an enhance stone to roll a tier-up on an item, with tier-scaled odds of success, downgrade, or destruction — all resolved 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
~75 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25

Description

A risk-reward enhancement loop for roleplay servers: combine an item with an enhance stone to roll an upgrade, where higher tiers carry rising odds of downgrade or outright destruction. Servers buy it because the gamble is sticky and the failure chance is a powerful, self-balancing material sink.

Prompt Template

You are writing a FiveM resource for QBCore, core via exports['qb-core']:GetCoreObject()…

🔒 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/crafting/23-item-enhancement-upgrade.lua implements a client upgrade request plus a server ODDS table that reads the item's true tier, consumes the…

🔒 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 roll — if success is rolled on the client a cheat always wins; resolve the roll server-side.
  • Client-sent tier — trusting a client tier value lets a player upgrade past MAX_TIER; read info.tier from the server item.
  • Stone not consumed — consume the enhance stone before the roll so a destroyed attempt still costs.

Corrective re-prompt: "Read the item's current tier from the server-held item info, never from the client; the client only sends the slot. Consume the enhance_stone before rolling math.random against the tier's ODDS, and apply success/downgrade/destroy entirely in the server section."

Framework Integration

ESX: swap to exports['es_extended']:getSharedObject() and store the tier in the item metadata via xPlayer inventory helpers. QBCore: native here — Player.Functions.GetItemBySlot, SetItemData(slot, 'info', info) and RemoveItem drive the roll. QBox: keep the ODDS logic and persist the tier through ox_inventory slot metadata via exports.ox_inventory:SetMetadata.

Profit Potential

$300–$3500/mo on Tebex (expected ~$1000). [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 gear-upgrade niche.

Trend Signal

rising — inferred: [INFERRED] risk/reward gear-upgrade loops are rising; the failure chance creates a strong material sink.

Sales Angle

Lead with the gamble: every attempt can promote, demote, or destroy the item, which keeps players grinding stones. Recommended Tebex price: $99.

Difficulty & Ship Time

advanced · ships in 1 day.