gta6/prompts
housing
Coreintermediatehousing

Share a House Key with a Friend

Owners run /givekey to grant a friend access to their property and /revokekey to take it back, all validated server-side.

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

Description

A key-sharing layer on top of property ownership: the owner targets a nearby player by server id and grants or revokes access to a named property. Every grant is checked against real ownership on the server and stored against the friend's persistent identifier. This is what lets roommates, partners, and crews actually share a home.

Prompt Template

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

🔒 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/06-key-sharing.lua shows the two commands client-side and the isOwner-gated grant/revoke handlers writing to a propertykeys table by identifier.…

🔒 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

  • No ownership check — anyone could share keys to any house. Gate every write behind a server-side isOwner lookup.
  • Duplicate key rows — repeated grants bloat the table. Use INSERT ... ON DUPLICATE KEY UPDATE.
  • Keying by name/serverId — those change between sessions. Store the stable identifier.

Integration Notes

  • Needs a property_keys table with a unique index on (property_id, identifier) for the upsert to work.
  • The door/stash scripts should read property_keys when deciding access, not just the owner column.
  • Declare es_extended and oxmysql. Test: owner /givekeys a friend, friend can open the door; owner /revokekeys, access is gone.

Profit Potential

$200–$2600/mo on Tebex (expected ~$750). [INFERRED] intermediate companion feature scaled slightly below the $50-389 band center against the signal-scraper tebex corpus (median seller $11.85K/mo, n=100); a feature layer rather than a full system caps standalone units.

Trend Signal

rising — housing systems niche-selection 3.60; corpus ox_doorlock active.

Sales Angle

Position as the roommates-and-crews key layer that makes shared housing actually work. Recommended Tebex price $49 — a cheap impulse add-on bolted onto any ownership script.

Difficulty & Ship Time

intermediate · ships in 2-4h.