gta6/prompts
housing
Vaultintermediatehousing

Home & Contents Insurance Claims

ESX/QBCore policy desk that sells a home-and-contents premium, then pays a server-verified claim minus the deductible after a burglary or fire.

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

Description

A home-and-contents insurance loop: the player buys a policy at a desk for a premium, and after a burglary or fire files a claim that the server verifies against an active policy and pays out minus a deductible. It is the property counterpart to vehicle insurance — a believable money-sink-plus-payout cycle that rewards players for protecting their assets.

Prompt Template

You are writing a FiveM script for QBCore (qb-core, exports GetCoreObject) with…

🔒 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/19-home-contents-insurance-claims.lua implements the policy-desk purchase on the client and a server that underwrites the premium, verifies an…

🔒 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 payout — a client-sent amount lets a player claim any sum.
  • No active-policy check — repeated claims with no premium ever paid.
  • Policy never deactivated — the same incident is claimed endlessly.

Corrective re-prompt: Resolve every payout from the server-side Coverage table by claim kind, SELECT the policy and require active = 1 before paying, then UPDATE it inactive in the same handler so one incident yields exactly one payout.

Framework Integration

  • ESX: resolve with ESX.GetPlayerFromId(source), charge xPlayer.removeAccountMoney('bank', premium), pay xPlayer.addAccountMoney('bank', net), key the policy by identifier.
  • QBCore: as written — QBCore.Functions.GetPlayer, Player.Functions.RemoveMoney/AddMoney('bank', ...), citizenid policy holder.
  • QBox: swap to exports.qbx_core:GetPlayer(source); the RemoveMoney/AddMoney and oxmysql policy schema match QBCore unchanged.

Profit Potential

$150–$2000/mo on Tebex (expected ~$500). [INFERRED] priced inside the $50-389 script band against the signal-scraper tebex corpus (median seller $11.85K/mo, n=100), scaled for a stable property-insurance niche.

Trend Signal

stable — inferred: [INFERRED] property/contents cover (cf id-023 Insurance Underwriter); distinct from vehicle insurance.

Sales Angle

Position as the property half of an insurance ecosystem for servers already selling vehicle cover — a natural cross-sell. Recommended Tebex price $79.

Difficulty & Ship Time

intermediate · ships in 2-4h.