vi/raiser
housing
housing, GTA 6 style illustration
Vaultintermediatehousing

Roommate Rent-Split

ESX/QBCore/QBox shared-lease module where roommates contribute to a server-tracked kitty and rent auto-debits from it on a timed cycle.

PRODUCTION-SHAPED, the reference Lua is validated and written framework-correct for ESX, QBCore, and QBox, ready to drop into your server.
Est. Lua
~78 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25
Unlock price
$199Vault

Unlock all 510 prompts

Profit potential / mostable
$500($150 to $2,000)

$50-389 script band, sized for a stable niche; top sellers clear around $11.85K/mo.

Effort vs return
intermediate2-4h

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…

🔒 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/18-roommate-rent-split.lua implements the client /payrent and /rentbalance commands and a server handler that validates funds, credits the kitty…

🔒 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 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 by identifier.
  • QBCore: resolve with QBCore.Functions.GetPlayer(source), check Player.PlayerData.money.cash, charge Player.Functions.RemoveMoney('cash', amount), key by citizenid.
  • QBox: use exports.qbx_core:GetPlayer(source) with the same Player.Functions.RemoveMoney and citizenid keying as QBCore.

Profit Potential

$150-$2000/mo on Tebex (expected ~$500), priced inside the $50-389 script band against the demand-signal corpus tebex corpus (median ~$11.85K/mo), scaled for a stable shared-liability niche.

Trend Signal

stable, 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.