gta6/prompts
housing
Vaultadvancedhousing

Squatting & Abandoned-Property Claim

QBCore/QBox adverse-possession mechanic: occupy an unowned property and claim legal title server-side after a timed window of undisputed occupancy.

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

Description

An adverse-possession mechanic: a player forces entry into an unowned or abandoned property, and if the squat goes undisputed for a configurable window the server grants them legal title. It is a genuinely novel housing loop with almost no Tebex competition — high-drama roleplay where ownership is contested over real in-game time rather than bought outright.

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/20-squatting-abandoned-claim.lua implements the occupy/claim prompts and force-entry anim on the client and a server that persists the squat…

🔒 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 timer — a player fakes elapsed time and claims instantly.
  • Non-persistent start — the start time lives in a Lua table wiped on restart.
  • No re-check at claim — a squatter overrides a legitimate purchase made during the window.

Corrective re-prompt: Store started_at server-side with os.time() in an oxmysql squat_claims row, compute elapsed = os.time() - started_at in the claim handler, and re-SELECT the property to confirm owner is still NULL before writing title — never trust a client timer.

Framework Integration

  • ESX: resolve with ESX.GetPlayerFromId(source) and key squat_claims by identifier; the os.time() window logic is framework-agnostic.
  • QBCore: as written — QBCore.Functions.GetPlayer, citizenid squatter, oxmysql persistence.
  • QBox: swap to exports.qbx_core:GetPlayer(source); citizenid and the oxmysql squat_claims/properties schema are identical to QBCore.

Profit Potential

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

Trend Signal

rising — inferred: [INFERRED] adverse-possession mechanic is novel with low Tebex saturation and high RP appeal.

Sales Angle

Position as a premium novelty mechanic with virtually no direct Tebex competitor — the squatting drama servers cannot buy elsewhere. Recommended Tebex price $129.

Difficulty & Ship Time

advanced · ships in 1 day.