gta6/prompts
mechanic
Vaultintermediatemechanic

Salvaged-Parts Crafting Bench

A QBCore + ox_inventory crafting bench that turns raw scrap into refurbished usable parts at a skill-gated workbench, with all ingredient checks server-side.

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

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…

🔒 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 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…

🔒 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

  • Client-side gate — ingredient and skill checks run on the client. Move both into the server craft handler.
  • 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 animTaskPlayAnim fires before the dict loads. Mandate the RequestAnimDict/HasAnimDictLoaded wait 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 from xPlayer.getMeta('mechanicskill') and keep the ox_inventory item calls.
  • QBCore: exports['qb-core']:GetCoreObject(); skill via Player.PlayerData.metadata.mechanicskill as written.
  • QBox: exports.qbx_core:GetPlayer(src); ox_inventory is native to QBox so GetItemCount/RemoveItem/AddItem port 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.