gta6/prompts
housing
Vaultadvancedhousing

Property Mortgage & Foreclosure

ESX exports-based deed-collateral mortgage: amortized monthly installments billed server-side, three missed payments trigger foreclosure and eviction.

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

Description

A deed-collateral mortgage system: a player borrows against a property, then pays an amortized monthly installment at the bank. The server runs the billing cycle, debits the bank automatically when it can, and counts strikes when it cannot — three missed payments foreclose the loan and evict the player from the home. Servers sell it because it turns static home ownership into an ongoing economic stake with real downside.

Prompt Template

You are writing a FiveM script for esextended (stable, exports-based…

🔒 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/11-property-mortgage-foreclosure.lua implements the bank proximity prompt and /paymortgage on the client, and a server-held per-identifier ledger…

🔒 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-side balance — the loan total is tracked on the client, so a player edits it or skips installments. Force the ledger server-side.
  • Stale cached balance — the billing cycle reads a cached value instead of the server ledger, double-counting payments on reconnect.
  • Cosmetic foreclosure — eviction is client-only and never clears the server deed record, so ownership persists after the strike.

Corrective re-prompt: Move every balance and money mutation into the server section; the client only displays values it receives via "housing:mortgageInfo". On the third missed payment also clear the server deed/ownership record before firing "housing:foreclosed", and re-read the ledger (never a cached copy) at the start of each billing cycle.

Framework Integration

  • ESX: exports["es_extended"]:getSharedObject(); xPlayer.getMoney() / removeMoney / addMoney and ESX.GetPlayers() for the cycle.
  • QBCore: swap to exports["qb-core"]:GetCoreObject(), Player.PlayerData.money.bank, Player.Functions.RemoveMoney("bank", amt).
  • QBox: use exports.qbx_core accessors; persist the ledger in player_houses/a custom table rather than the in-memory map.

Profit Potential

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

Trend Signal

rising — inferred: [INFERRED] housing-finance demand; deed foreclosure+eviction is the housing-distinct angle (id-019 generic loans sit in economy).

Sales Angle

Position as the consequences layer for any property pack — the foreclosure pressure that makes home ownership matter. Recommended Tebex price $189.

Difficulty & Ship Time

advanced · ships in 1 day.