Description
A chemistry lab where players sequence reagents through ordered cook stages, with a skill check at each stage determining the batch's final purity and yield. Cook labs are ubiquitous, so the edge is a clean server-authoritative stage machine where reagents are actually consumed and purity cannot be forged.
Prompt Template
You are writing a FiveM resource for a generic roleplay framework accessed via…
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/drugs/06-chemical-cook-lab.lua implements the cook command and skill-check roll client-side and a server that owns the recipe table, per-stage reagent…
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
- Client stage/purity — keeping stage or purity on the client lets a player jump to the last stage at full purity; both live in the server session.
- No reagent consume — failing to
removeItemthe stage reagent cooks for free; abort the stage if the reagent is missing. - Trusted skill result — even using the client
hitflag, the purity change must be applied and clamped server-side, never sent as a final value.
Corrective re-prompt: "Hold stage and purity only in the server-side sessions table keyed by source. Each doStage must removeItem the next recipe reagent and abort if it fails; apply and clamp the purity penalty server-side; pay the product only when stage reaches the recipe length."
Framework Integration
ESX: use getSharedObject(), consume reagents with xPlayer.getInventoryItem/removeInventoryItem and pay via addInventoryItem. QBCore: GetCoreObject(), Player.Functions.RemoveItem per stage and AddItem for the product. QBox: drive reagents/product through ox_inventory and pair the lab door with ox_doorlock, the standard cook-lab co-dependency.
Profit Potential
$150–$2000/mo on Tebex (expected ~$500). [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 stable cook-lab niche.
Trend Signal
→ stable — corpus: Cook labs ubiquitous; ox_lib skillcheck + ox_doorlock lab-door co-dependency is a standard scrape signal.
Sales Angle
Differentiate on rigor: a sequenced reagent machine with skill-gated purity that actually consumes ingredients, where the cheap clones leak. Recommended Tebex price: $69.
Difficulty & Ship Time
intermediate · ships in 4-6h.