gta6/prompts
housing
Vaultintermediatehousing

Real-Estate Brokerage Commission

ESX broker role that lists and shows client properties and earns a server-validated percentage commission on each closed sale.

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

Description

A player real-estate-broker role: brokers list and showcase client properties to prospective buyers and earn a percentage commission when a sale closes. Servers sell it because it converts housing from a solo vending-machine purchase into a player-driven market with a paid job loop attached.

Prompt Template

You are writing a FiveM script 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/housing/24-realestate-brokerage-commission.lua implements the showcase gesture + listing preview on the client and a server-side sale that pays the…

πŸ”’ 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-trusted commission β€” the cut is computed on the broker's client and accepted blindly.
  • Double-sell race β€” money moves before re-confirming the listing is unowned.
  • Unloaded gesture β€” TaskPlayAnim fires before the dict loads, T-posing the first showing.

Corrective re-prompt: "Compute the commission and every balance check on the server from the DB price only β€” never trust a value from the client. Before charging, re-select the listing and reject if it already has an owner. Wrap the showcase animation in RequestAnimDict + a HasAnimDictLoaded wait loop."

Framework Integration

  • ESX: xPlayer.getMoney, xPlayer.removeMoney, xPlayer.addMoney; owner key is xPlayer.identifier.
  • QBCore: Player.Functions.RemoveMoney/AddMoney("bank", amt); owner key citizenid; notify with QBCore.Functions.Notify.
  • QBox: same as QBCore via exports.qbx_core; keep the commission math in the server event only.

Profit Potential

$250–$3500/mo on Tebex (expected ~$900). [INFERRED] $50-389 script band priced against the corpus of housing/economy jobs (signal-scraper tebex_snapshot n=100, median seller $11.85K/mo); a rising player-economy loop justifies the upper mid-band.

Trend Signal

β†— rising β€” inferred: [INFERRED] player-broker commission loop ties players to the property market; uncommon turnkey product.

Sales Angle

Sell it as the job that turns your housing pack into a living market β€” brokers, showings, commissions. Recommended Tebex price $249.

Difficulty & Ship Time

intermediate Β· ships in 1 day.