gta6/prompts
crafting
Vaultadvancedcrafting

Shared Org Stash with Permissions & Audit Log

ESX/QBCore shared organization stash with per-rank deposit/withdraw permissions and a full audit log of every transfer, all enforced 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
~100 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25

Description

A shared organization/gang stash for ESX/QBCore with per-rank deposit and withdraw permissions and a complete audit log of every transfer. The server enforces grade thresholds and records who moved what and when, giving faction leaders a tamper-proof trail to deter insider theft.

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 at content/expected-outputs/crafting/06-org-shared-stash-audit.lua implements grade-gated deposit/withdraw against a job-keyed stash, a capped server-side audit log via record, and…

πŸ”’ 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 grade check β€” trusting a client permission flag lets a low-rank cheat withdraw. Read xPlayer.job.grade server-side every time.
  • Forgeable log β€” logging in NUI defeats the audit. Call record only in the server handlers.
  • Deposit dupe β€” crediting the stash without first verifying+removing the depositor's item duplicates loot. Check getInventoryItem then removeInventoryItem before crediting.

Corrective re-prompt: "Enforce MIN_DEPOSIT_GRADE/MIN_WITHDRAW_GRADE against xPlayer.job.grade server-side, append every transfer to the server-side audit log only, and on deposit verify the player holds the item and removeInventoryItem before crediting the org stash."

Framework Integration

  • ESX: exports['es_extended']:getSharedObject(); xPlayer.job.name/xPlayer.job.grade drive the key and permissions.
  • QBCore: exports['qb-core']:GetCoreObject(), QBCore.Functions.GetPlayer(source); read Player.PlayerData.job.grade.level.
  • QBox: exports.qbx_core:GetPlayer(source); persist the stash + log to an ox_inventory stash and a DB table for durability.

Profit Potential

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

Trend Signal

β†— rising β€” [INFERRED] faction servers increasingly demand permissioned org storage with transfer logging to deter insider theft; rising.

Sales Angle

The anti-insider-theft org vault β€” per-rank permissions plus a tamper-proof audit log faction leaders can actually review. Recommended Tebex price: $99.

Difficulty & Ship Time

advanced Β· ships in 1 day.