Description
A shared-lease rent system: multiple roommates pay into a server-tracked kitty with /payrent, and a timed cycle auto-debits the rent from that kitty once per lease. Unlike key-sharing (which only grants access), this models shared financial liability — the heart of group-living roleplay where one roommate skipping their share leaves the house in arrears.
Prompt Template
You are writing a FiveM script for esextended (stable, exports-based…
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.
- 60 prompts + syntax-validated reference Lua
- Lifetime access — pay once
- All 510 prompts — the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates — new niches as the market moves
$49 for 60 · $199 for all 510 + intelligence — one-time, no subscription.
Expected Output
The reference Lua at content/expected-outputs/housing/18-roommate-rent-split.lua implements the client /payrent and /rentbalance commands and a server handler that validates funds, credits the kitty…
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.
- 60 prompts + syntax-validated reference Lua
- Lifetime access — pay once
- All 510 prompts — the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates — new niches as the market moves
$49 for 60 · $199 for all 510 + intelligence — one-time, no subscription.
Known Failure Modes & Corrective Prompt
- Client-side kitty — a spoofed event marks rent paid without moving money.
- Charge-before-check — removing the contribution before verifying funds drives balances negative.
- Per-player cycle — the rent charges once per connected roommate instead of once per lease.
Corrective re-prompt: Keep the kitty and contributions table server-side only; in the contribute handler call getMoney() and reject before removeMoney(); run the rent cycle as a single server CreateThread that iterates each lease exactly once per interval, not per connected player.
Framework Integration
- ESX: as written —
ESX.GetPlayerFromId,getMoney()/removeMoney(), keyed byidentifier. - QBCore: resolve with
QBCore.Functions.GetPlayer(source), checkPlayer.PlayerData.money.cash, chargePlayer.Functions.RemoveMoney('cash', amount), key bycitizenid. - QBox: use
exports.qbx_core:GetPlayer(source)with the samePlayer.Functions.RemoveMoneyand citizenid keying as QBCore.
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 shared-liability niche.
Trend Signal
→ stable — inferred: [INFERRED] cost-split demand; shared rent liability is distinct from key-sharing (access only).
Sales Angle
Position as the financial-liability layer that key-sharing scripts skip — group housing without the freeloader problem. Recommended Tebex price $69.
Difficulty & Ship Time
intermediate · ships in 2-4h.