Description
A skill-gated workbench that crafts refurbished, usable parts from raw scrap — consuming ingredients via ox_inventory and gating recipes behind a mechanic-skill metadata value. It closes the loop on a salvage economy (chop a car, craft from the scrap), which is the rising crafting pattern the corpus tracks.
Prompt Template
Write a FiveM QBCore Lua resource "salvagebench" using oxinventory: craft…
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/12-salvaged-parts-crafting-bench.lua implements a server-owned recipe table, a skill gate read from metadata, a check-all-then-remove ingredient…
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-side gate — ingredient and skill checks run on the client. Move both into the server
crafthandler. - Non-atomic craft — items are removed and the part added without checking all ingredients first, so a partial craft eats scrap. Check every ingredient, then remove.
- Unloaded anim —
TaskPlayAnimfires before the dict loads. Mandate theRequestAnimDict/HasAnimDictLoadedwait loop.
Corrective re-prompt: Move the recipe table, skill check, and ingredient validation entirely server-side; verify every ingredient with GetItemCount before any RemoveItem, then AddItem the output, and wrap the craft anim in RequestAnimDict + a HasAnimDictLoaded wait loop.
Framework Integration
- ESX:
exports['es_extended']:getSharedObject(); read skill fromxPlayer.getMeta('mechanicskill')and keep theox_inventoryitem calls. - QBCore:
exports['qb-core']:GetCoreObject(); skill viaPlayer.PlayerData.metadata.mechanicskillas written. - QBox:
exports.qbx_core:GetPlayer(src);ox_inventoryis native to QBox soGetItemCount/RemoveItem/AddItemport directly.
Profit Potential
$240–$3200/mo on Tebex (expected ~$870). [INFERRED] priced inside the $50-389 script band against the signal-scraper corpus (median seller $11.85K/mo, n=100), scaled for a rising crafting-economy niche.
Trend Signal
↗ rising — corpus: ox_inventory crafting hooks; crafting-economy is a rising launch-signal pattern in the corpus.
Sales Angle
Position as the crafting half of a salvage economy — pairs directly with the scrapyard chop shop to close the loop. Recommended Tebex price $160, or bundle both as a salvage pack.
Difficulty & Ship Time
intermediate · ships in 4-6h.