gta6/prompts
crafting
Vaultintermediatecrafting

Blueprint Fragment Assembly

QBCore fragment assembly where collecting N schematic fragments combines into a complete blueprint, with the count, consume and grant validated 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
~80 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25

Description

A working QBCore blueprint fragment assembly system: rare recipes are gated behind N collectible schematic fragments that only combine into a complete blueprint once the player holds the full set. The server counts the fragments, consumes them atomically and grants the blueprint, so the chase can't be skipped. This is the fragment-collection engagement loop survival and RP crafting economies sell to drive grind.

Prompt Template

You are writing a FiveM resource for qb-core (exports['qb-core']:GetCoreObject()).

πŸ”’ 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 lives at content/expected-outputs/crafting/10-blueprint-fragment-assembly.lua. It implements an assembly anim with a load wait, a server-side schema table that counts fragments via…

πŸ”’ 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-trusted assembly β€” Claude counts fragments and grants the blueprint locally; a modder assembles with none. Keep the count, consume and grant on the server.
  • Anim before load β€” TaskPlayAnim no-ops if the dict is not loaded; always RequestAnimDict + while not HasAnimDictLoaded(dict) do Wait(0) end.
  • One-sided net event β€” defining fragment:assembleResult on only one side breaks the progress round-trip; both client and server use RegisterNetEvent + AddEventHandler.

Corrective re-prompt: "Move the fragment count and grant to the server: read the fragment amount with GetItemByName, reject if below the required count, then RemoveItem the exact required amount (checking its return) before AddItem the blueprint. The client only triggers assemble and renders the have/need values the server returns."

Framework Integration

  • ESX: swap to exports['es_extended']:getSharedObject() and use xPlayer.getInventoryItem(frag).count / xPlayer.removeInventoryItem / xPlayer.addInventoryItem.
  • QBCore: as written β€” Player.Functions.GetItemByName, guarded RemoveItem, AddItem, plus a progress callback.
  • QBox: use exports.qbx_core:GetPlayer(src) with ox_inventory exports; the count/consume/grant flow is identical.

Profit Potential

$250–$3200/mo on Tebex (expected ~$900). [INFERRED] priced inside the $50-389 script band against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo); a rising engagement-loop niche in survival and RP economies.

Trend Signal

β†— rising β€” inferred: fragment-collection creates a chase/engagement loop, rising in survival and RP crafting economies.

Sales Angle

The chase loop that keeps players grinding β€” collect fragments, assemble a rare blueprint, unlock the recipe nobody else has. Recommended Tebex price $169.

Difficulty & Ship Time

intermediate Β· ships in 4-5h.