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).
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.
- 60 prompts + syntax-validated reference Lua
- Lifetime access — pay once
- All 510 prompts — the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates — new niches as the market moves
$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…
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.
- 60 prompts + syntax-validated reference Lua
- Lifetime access — pay once
- All 510 prompts — the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates — new niches as the market moves
$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
TaskPlayAnimno-ops if the dict is not loaded; alwaysRequestAnimDict+ aHasAnimDictLoadedwait loop. - One-sided net event —
supply:syncon only one side leaves the HUD phase stale; both sides useRegisterNetEvent+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 withxPlayer.removeMoney(cost)and write delivered stock back through your storefront's shared account. - QBCore:
local QBCore = exports['qb-core']:GetCoreObject(); gate the depot zone withqb-targetand persist orders in asupply_ordersrow. - QBox: use
exports.qbx_core:GetPlayer(src); back the crate with anox_inventorystash 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.