gta6/prompts
economy
Coreintermediateeconomy

Cash vs Bank Transfer — /pay a Player

ESX /pay and /paybank commands that transfer money to a nearby player, with server-side distance, target and funds validation.

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

Description

An ESX peer-to-peer payment system: /pay [id] [amount] hands cash to a nearby player and /paybank [id] [amount] wires the same from the sender's bank. The server checks the target exists, is in range, is not the sender, and that funds cover the amount before moving money on both sides atomically. This is the social glue of a player-run economy.

Prompt Template

You are writing a FiveM resource for esextended. Register the commands 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.

Expected Output

The reference Lua at content/expected-outputs/economy/09-pay-player-cash-bank-transfer.lua registers /pay and /paybank server-side sharing one handlePay, validating target/self/distance/funds before…

🔒 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

  • Client-side command — registering /pay on the client makes the transfer unauthoritative. Require server-side RegisterCommand.
  • No distance / self check — paying across the map or yourself enables remote dupes. Require a MAX_DISTANCE check and a target.source == source reject.
  • Half transfers — removing from the sender without crediting the target loses money. Require both sides in one transfer() after the funds check.
  • Unfloored amount — fractional amounts desync balances. Require math.floor on the amount.

Integration Notes

server.lua holds both commands and validation; client.lua only adds the chat suggestion. Declare both in fxmanifest.lua; depends on es_extended. Test with two connected players standing together: /pay <id> 100 moves cash both ways; from across the map it is rejected for distance; paying your own id is rejected.

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 economy niche.

Trend Signal

rising — [INFERRED] banking/economy is core RP-server infrastructure, steady demand.

Sales Angle

Position as the social glue of an ESX economy — safe player-to-player cash and bank transfers with every common exploit (remote pay, self-pay, half transfers) closed off. Recommended Tebex price: $59.

Difficulty & Ship Time

intermediate · ships in 2-4h.