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).
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 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β¦
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 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
TaskPlayAnimno-ops if the dict is not loaded; alwaysRequestAnimDict+while not HasAnimDictLoaded(dict) do Wait(0) end. - One-sided net event β
craft:done/craft:faileddefined on only one side breaks the round-trip; both sides needRegisterNetEvent+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 viaxPlayer.getJob().name, grade via.getJob().grade; grant viaxPlayer.addInventoryItem. - QBCore:
exports['qb-core']:GetCoreObject(); gang viaPlayer.PlayerData.gang.name; grant viaPlayer.Functions.AddItem. - QBox:
exports.qbx_core:GetPlayer(src); gang viaplayer.PlayerData.gang.name; grant viaexports.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.