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.
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 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…
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
- Client-side command — registering
/payon the client makes the transfer unauthoritative. Require server-sideRegisterCommand. - No distance / self check — paying across the map or yourself enables remote dupes. Require a
MAX_DISTANCEcheck and atarget.source == sourcereject. - 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.flooron 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.