gta6/prompts
economy
Vaultadvancedeconomy

Estate & Inheritance — Beneficiary Payout

QBCore estate system that transfers a player's cash to a registered beneficiary on death or long inactivity, or escheats it to the treasury.

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

Description

An estate and inheritance system: a player registers a beneficiary, and on death or long inactivity their cash transfers to that heir — or escheats to the state treasury if no valid heir exists. Servers buy it because it stops wealth from vanishing on death and adds genuine will/estate RP, especially on permadeath servers.

Prompt Template

You are writing a FiveM resource for qb-core.

🔒 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/20-estate-inheritance-beneficiary.lua removes the deceased's cash before settling, routes it to an online heir or the treasury, records last-seen…

🔒 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

  • Money duplication — crediting the heir before debiting the estate; remove first, then settle.
  • Silent drop — losing the estate when the heir is offline; escheat to the treasury instead.
  • Client clock — manipulated inactivity; sweep on server os.time().

Corrective re-prompt: "Debit the deceased's cash before crediting any heir, escheat to the treasury whenever no online beneficiary exists, and run the inactivity sweep on server os.time() so a client clock cannot trigger or dodge it."

Framework Integration

ESX: use ESX.GetPlayerFromId / a citizenid-equivalent identifier lookup and addMoney/removeMoney; replace qb-banking with your society/account export. QBCore: as written — GetPlayer, GetPlayerByCitizenId, and qb-banking for the treasury account. QBox: resolve via exports.qbx_core:GetPlayer; keep the same settlement and sweep logic.

Profit Potential

$250–$3500/mo on Tebex (expected ~$900). [INFERRED] priced in the $50-389 script band against the signal-scraper tebex_snapshot corpus (median seller $11.85K/mo, n=100), scaled to a rising-niche unit estimate.

Trend Signal

rising — inferred: Rare mechanic; reasoned demand to stop wealth vanishing on death and add will/beneficiary RP to permadeath servers.

Sales Angle

The will-and-estate layer permadeath servers are missing — wealth survives death with real RP. Recommended Tebex price: $289.

Difficulty & Ship Time

advanced · ships in 1 day.