gta6/prompts
housing
Vaultadvancedhousing

Apartment Building / Landlord Units

ESX exports-based multi-unit building: a server-held unit roster where tenants rent individual units and the owner collects aggregated passive rent income.

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

Description

A landlord business built on a multi-unit building: tenants rent individual units, the server tracks the occupancy roster and accrues each deposit, and the owner collects the aggregated rent in one withdrawal. All occupancy and money state lives on the server, so units cannot be double-rented and the payout cannot be inflated. Servers sell it as the tycoon-tier upgrade to single-home ownership.

Prompt Template

You are writing a FiveM script for esextended (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/16-apartment-building-landlord-units.lua implements the lobby prompt, /rentunit and /collectrent on the client, and a server-held building roster…

πŸ”’ 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

  • Double-rented unit β€” checking occupancy on the client lets two tenants take the same unit. Validate against the server units roster.
  • Inflated payout β€” summing accrued rent client-side lets the landlord fake the collectable total. Accrue on the server only.
  • Unowned collect β€” paying out without checking the caller is the owner lets anyone drain the pool. Verify ownership before addMoney.

Corrective re-prompt: Keep the unit roster and accrued rent entirely server-side: reject "landlord:rentUnit" if units[unit] is set, and on "landlord:collect" verify the caller's identifier matches building.owner before paying out building.accrued and resetting it. The client only displays "landlord:buildingInfo"/"landlord:income".

Framework Integration

  • ESX: getSharedObject(); key tenants on xPlayer.identifier, xPlayer.getMoney() / removeMoney / addMoney.
  • QBCore: exports["qb-core"]:GetCoreObject(); key on citizenid, Player.Functions.RemoveMoney/AddMoney("bank", amt).
  • QBox: exports.qbx_core:GetPlayer(src); persist the roster + accrued rent in an apartment_buildings table via oxmysql so it survives restarts.

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 β€” strategy: niche-selection.md housing=rising (3.60); MASTER-200 id-047 Apartment Block Manager (landlord/rent/eviction).

Sales Angle

Position as the landlord tycoon layer β€” turn one building into a passive-income business with a live tenant roster. Recommended Tebex price $219.

Difficulty & Ship Time

advanced Β· ships in 1 day.