gta6/prompts
business
Vaultintermediatebusiness

Business Ownership Transfer (Escrow)

ESX/QB secondary-market mechanic that sells a whole business to another player through a server-held escrow — valuation, buyer funds locked, then deed and ownership atomically handed off on confirm.

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 business ownership transfer with escrow for ESX or QB: a seller lists a business at a valuation, the buyer's funds are locked in a server-held escrow, and on mutual confirm the money and the deed change hands in one atomic server-side step. Nothing the client does can flip the deed without payment or let a seller double-sell — it is the safe secondary-market sale that few storefronts ship cleanly.

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/business/06-ownership-transfer-escrow.lua. It implements a server-owned deal phase machine (listed → funded → closed), a buyer-funded escrow hold,…

🔒 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

  • Non-atomic transfer — Claude lets the client move money and the deed separately; lock funds into deal.held and pay+flip-deed in one server-side step keyed by dealId.
  • Anim before load — the signing TaskPlayAnim no-ops if the dict is not loaded; always RequestAnimDict + a HasAnimDictLoaded wait loop.
  • One-sided net eventescrow:sync on only one side leaves the counterparty unaware the deal funded; both sides use RegisterNetEvent + AddEventHandler.

Corrective re-prompt: "In server.lua move the buyer's money into deal.held during escrow:fund, and in escrow:confirm — gated on source==seller and phase=='funded' — pay held to the seller, set businesses[bizId].owner = buyer and phase='closed' in the same handler with no client involvement; refund held on any abort."

Framework Integration

  • ESX: local ESX = exports['es_extended']:getSharedObject(); lock funds with xPlayer.removeMoney(price) into the deal and release with addMoney to the seller on confirm.
  • QBCore: local QBCore = exports['qb-core']:GetCoreObject(); persist the deed in a player_businesses row and update owner inside the confirm transaction.
  • QBox: use exports.qbx_core:GetPlayer(src); wrap the pay+deed flip in a single oxmysql transaction for true atomicity across a restart.

Profit Potential

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

Trend Signal

rising — strategy: Matrix flags ownership-transfer as a compounding secondary-market mechanic few storefronts ship cleanly.

Sales Angle

Position as the safe player-to-player business sale almost nobody ships — escrow prevents the scam that otherwise kills a server's secondary market. Recommended Tebex price $139.

Difficulty & Ship Time

intermediate · ships in 1 day.