gta6/prompts
gangs
Vaultadvancedgangs

Gang Crafting Bench

ESX hideout-bound crafting bench, gated to the gang, that converts treasury-bought materials into weapons/ammo with the balance, recipes and rank gate owned 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
~89 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25

Description

A working ESX gang crafting bench: a member presses E at a hideout bench to convert treasury-bought materials into weapons or ammo, gated by both gang membership and rank. The treasury balance, recipe costs and item grant all live server-side, so the access-and-funding control is the upsell that differentiates it from a generic crafting table.

Prompt Template

You are writing a FiveM resource for esextended (stable, exports getSharedObject).

πŸ”’ 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/gangs/24-gang-crafting-bench.lua. It implements the proximity prompt and craft anim on the client, and a server-side treasury balance, recipe table…

πŸ”’ 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 crafting β€” Claude deducts materials and grants the item on the client, so a modder crafts for free. Keep the treasury, recipe cost and grant on the server.
  • Anim before load β€” the craft TaskPlayAnim no-ops if the dict is not loaded; always RequestAnimDict + while not HasAnimDictLoaded(dict) do Wait(0) end.
  • One-sided net event β€” craft:done / craft:failed defined on only one side breaks the round-trip; both sides need RegisterNetEvent + AddEventHandler.

Corrective re-prompt: "The bench is deducting materials and adding the item client-side. Move it all into the craft:make server handler: resolve the recipe, gate on job.grade and on Treasury[gang] >= recipe.cost, subtract the cost, call xPlayer.addInventoryItem server-side, then fire craft:done / craft:failed. The client only sends the recipe id."

Framework Integration

  • ESX: exports['es_extended']:getSharedObject(); gang via xPlayer.getJob().name, grade via .getJob().grade; grant via xPlayer.addInventoryItem.
  • QBCore: exports['qb-core']:GetCoreObject(); gang via Player.PlayerData.gang.name; grant via Player.Functions.AddItem.
  • QBox: exports.qbx_core:GetPlayer(src); gang via player.PlayerData.gang.name; grant via exports.ox_inventory:AddItem.

Profit Potential

$250–$3500/mo on Tebex (expected ~$900). [INFERRED] $50-389 script band Γ— est units/mo for a rising niche, against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo).

Trend Signal

β†— rising β€” inferred: Gang/treasury-gated bench differentiates from the generic crafting category by access + funding control; inferred-rising.

Sales Angle

A gang-only crafting bench funded by the shared treasury β€” the access plus funding gate is the angle over a generic crafting table, giving leaders control over who arms the crew. Recommended Tebex price $129.

Difficulty & Ship Time

advanced Β· ships in 1 day.