gta6/prompts
casino
Vaultbeginnercasino

Chip Cashier Cage

ESX/QBCore cashier cage converting cash to chips and back with a server-owned per-shift float and an audit ledger.

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

Description

A cashier cage that converts cash into chip items and back, backed by a server-owned per-shift float and a running audit ledger of every exchange. It is the infrastructure layer every chip-based casino economy needs before a single table can take a bet, which is exactly why servers buy it rather than build it.

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/casino/14-chip-cashier-cage.lua. It implements a proximity cage prompt with a loaded slide anim, NUI callbacks for buy/cash-out, and a server-side…

πŸ”’ 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 conversion β€” chips can be minted for free; do all money/chip moves and the float in server.lua.
  • Anim before load β€” TaskPlayAnim no-ops without RequestAnimDict + a HasAnimDictLoaded wait loop.
  • Unvalidated NUI amount β€” re-check getMoney/chip count and reject non-positive or non-integer amounts on the server before any item move.
  • Float ignored β€” cashing out when the cage is dry breaks the economy; gate chips_to_cash on the remaining ShiftFloat.

Corrective re-prompt: Move every cash and chip mutation into server.lua, re-validate the amount (positive integer) and the player's cash/chip balance there, gate cash-outs on the remaining ShiftFloat, and append each exchange to a server-side Ledger with identifier and timestamp.

Framework Integration

  • ESX: xPlayer.addInventoryItem('casino_chip', amount) / xPlayer.getInventoryItem('casino_chip'); getMoney / removeMoney / addMoney for the cash leg.
  • QBCore: use Player.Functions.AddItem('casino_chip', amount) and Player.Functions.RemoveMoney('cash', amount, 'cage'); register casino_chip in qb-core/shared/items.lua.
  • QBox: identical to QBCore via exports.qbx_core:GetPlayer(src); works with ox_inventory by swapping to exports.ox_inventory:AddItem.

Profit Potential

$150–$2000/mo on Tebex (expected ~$500). [INFERRED] priced inside the $50-389 FiveM script band against a stable cage-infrastructure niche; corpus median seller $11.85K/mo (signal-scraper tebex_snapshot n=100).

Trend Signal

β†’ stable β€” inferred: Domain: cage infra every chip economy needs (id-028 implies a chip currency).

Sales Angle

Position as the cage every chip economy needs before its first table goes live β€” the boring-but-mandatory infrastructure servers would rather buy than build. Recommended Tebex price $69.

Difficulty & Ship Time

beginner Β· ships in 2-4h.