gta6/prompts
business
Vaultintermediatebusiness

Wholesale Restock Supply Runs

ESX/QB supply-chain loop where the owner pays for a wholesale crate order, drives to a depot to collect it, and delivers it back to replenish shop stock — all balances and stock server-authoritative.

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

Description

A wholesale restock supply run for ESX or QB: the shop owner pays to place a crate order, drives to a depot to physically collect it, and delivers it back to the store to replenish stock. The order phase, the depot pickup and the final stock credit are all server-validated so the loop can't be skipped — it turns restocking from a menu click into active gameplay.

Prompt Template

You are writing a FiveM resource for esextended (stable, exports getSharedObject).

🔒 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 lives at content/expected-outputs/business/04-wholesale-restock-runs.lua. It implements a server-owned orders table with a strict phase machine (ordered → collected → delivered), an…

🔒 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

  • Skippable loop — Claude lets the client credit stock without the depot leg; enforce the phase transition server-side keyed by orderId and source at every step.
  • Anim before load — the crate TaskPlayAnim no-ops if the dict is not loaded; always RequestAnimDict + a HasAnimDictLoaded wait loop.
  • One-sided net eventsupply:sync on only one side leaves the HUD phase stale; both sides use RegisterNetEvent + AddEventHandler.

Corrective re-prompt: "In server.lua store each order's phase and only advance it in order — supply:collect requires phase 'ordered', supply:deliver requires 'collected' and source==owner — credit shop stock solely inside supply:deliver, and reject any transition that arrives out of sequence."

Framework Integration

  • ESX: local ESX = exports['es_extended']:getSharedObject(); charge with xPlayer.removeMoney(cost) and write delivered stock back through your storefront's shared account.
  • QBCore: local QBCore = exports['qb-core']:GetCoreObject(); gate the depot zone with qb-target and persist orders in a supply_orders row.
  • QBox: use exports.qbx_core:GetPlayer(src); back the crate with an ox_inventory stash that empties into shop stock on delivery.

Profit Potential

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

Trend Signal

rising — corpus: ox_inventory stash + delivery-run loop recurs in scraped supply-chain scripts.

Sales Angle

Position as the active-gameplay layer that makes restocking a job rather than a menu click — sell it alongside the storefront pack as the supply-chain add-on. Recommended Tebex price $109.

Difficulty & Ship Time

intermediate · ships in 1 day.