gta6/prompts
mechanic
Vaultintermediatemechanic

Staged Performance Upgrade Tiers

Stage 1/2/3 engine/brake/trans/suspension purchases that charge server-side, write handling deltas, and persist the owned stage table across relogs.

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

Description

A staged upgrade shop where a player buys Stage 1/2/3 for engine, brake, transmission or suspension, the server charges and records the stage, and the handling deltas re-apply automatically on every relog. The market is flooded with one-shot upgrade menus that forget your build — this one's edge is server-persisted ownership and identical behaviour on ESX, QBCore and QBox.

Prompt Template

Write a FiveM Lua resource "stagedupgrades" — Stage 1/2/3 performance parts for…

🔒 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/mechanic/02-staged-performance-upgrade-tiers.lua validates price and the stage gate server-side, stores the owned stage table per plate, and re-applies…

🔒 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 charge — money is deducted in the command callback; trivially patched out. Move the charge into the server event.
  • No persistence replay — stages apply once then vanish on relog because nothing replays them. Add the upg:load round-trip.
  • Unenforced stage gate — server accepts a Stage 3 buy with no Stage 1/2 owned. Gate it in the server handler, not the UI.

Corrective re-prompt: Make the server the single source of truth: store the canonical price array and the owned-stage table on the server, reject any buy where the requested stage is more than one above the owned stage, and add an upg:load event that replays all stored stages when the player re-enters the vehicle.

Framework Integration

ESX: xPlayer.getMoney() / xPlayer.removeMoney(price) inside the upg:buy handler; persist stages via oxmysql keyed to the plate. QBCore: Player.Functions.RemoveMoney('bank', price) after GetPlayer(src); store the stage table on player_vehicles mods JSON. QBox: exports.qbx_core:GetPlayer(src) plus oxmysql upsert so all three frameworks share one persistence path.

Profit Potential

$80–$1200/mo on Tebex (expected ~$300). [INFERRED] Priced in the $50-389 band; a saturated category (corpus median seller $11.85K/mo, signal-scraper tebex_snapshot n=100) caps upside, so the play is reliability-led volume at a low price.

Trend Signal

saturated — corpus: Tebex top-100 floods basic upgrade menus (scraper category density); edge = persistence + all-3-framework parity.

Sales Angle

Win on the thing competitors break: a build that survives relogs, identical across ESX/QBCore/QBox. Recommended Tebex price $89 as the dependable baseline upgrade menu.

Difficulty & Ship Time

intermediate · ships in 1 day.