Description
A mechanic-shop stock system: parts have quantities, the shop orders supplier crates that arrive after a lead time, restock raises levels, and low-stock alerts warn the crew. It turns a flat job into a managed supply-chain economy, which is why corpus-tracked servers building deep mechanic loops buy it.
Prompt Template
Write a FiveM QBCore Lua resource "partsinv" using oxinventory: shop parts stock…
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 at content/expected-outputs/mechanic/10-parts-inventory-supplier-ordering.lua implements a server-owned stock table, a charged order with a server-side SetTimeout lead time, 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
- Trusted client stock — stock is mirrored client-side and believed. Keep the table server-only; the client just renders
showStock. - Client delivery timer — delivery runs on a client timer that a disconnect cancels after charging. Use server
SetTimeout. - Instant free parts —
AddItemis called before the lead time. Only deliver inside the timeout callback, after the charge.
Corrective re-prompt: Keep the stock table and all money on the server, charge with RemoveMoney before scheduling delivery, and deliver only inside a server SetTimeout(LEAD_TIME_MS) callback that calls ox_inventory:AddItem and fires the low-stock alert.
Framework Integration
- ESX:
exports['es_extended']:getSharedObject(); charge withxPlayer.removeAccountMoney('bank', cost)before theSetTimeout. - QBCore:
exports['qb-core']:GetCoreObject()+Player.Functions.RemoveMoney('bank', cost, 'parts-order')as written. - QBox:
exports.qbx_core:GetPlayer(src);ox_inventoryis the native inventory for QBox, soAddItemports directly.
Profit Potential
$270–$3500/mo on Tebex (expected ~$950). [INFERRED] priced inside the $50-389 script band against the signal-scraper corpus (median seller $11.85K/mo, n=100), scaled for a rising supply-chain niche.
Trend Signal
↗ rising — corpus: Built on ox_inventory; supply-chain/stock RP is a corpus-tracked growth pattern.
Sales Angle
Position as the supply-chain backbone for serious mechanic economies — the system that makes a garage feel like a business. Recommended Tebex price $200, top of the mechanic line.
Difficulty & Ship Time
advanced · ships in 1 day.