gta6/prompts
housing
Coreintermediatehousing

Door Lock with Owner Key + Lockpick

Owners toggle a door lock with their key; non-owners can attempt a lockpick that may fail and break the tool.

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

Description

A door that the owner unlocks with a key and an intruder can attempt to pick. The owner's key check and the canonical lock state live on the server; a failed lockpick consumes the tool. This is the classic break-in mechanic that makes housing feel alive and gives police something to respond to.

Prompt Template

You are writing a FiveM script for QBCore (exports['qb-core']:GetCoreObject()).

πŸ”’ 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/03-door-lock-lockpick.lua keeps lockState and owners on the server, validates the citizenid key, broadcasts state changes to all clients, and…

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

  • Client-only lock state β€” each client diverges and one can free-toggle. The server must own the state and broadcast it.
  • No item consumption β€” a failed pick with no cost makes lockpicks free retries. Require RemoveItem("lockpick", 1) server-side on failure.
  • Broadcast to source only β€” TriggerClientEvent(..., src, ...) leaves other players seeing a stale door. Broadcast with -1.

Integration Notes

  • Replace the attemptLockpick stub with a real minigame (qb-lockpick / ox skill check) returning a boolean.
  • Seed the owners table from your property-ownership data so real owners actually hold keys.
  • Add a lockpick item to your shared items; declare qb-core as a dependency. Test as owner (toggles) and as a stranger (must pick).

Profit Potential

$250–$3500/mo on Tebex (expected ~$950). [INFERRED] intermediate break-in mechanic set at the $50-389 band center against the signal-scraper tebex corpus (median seller $11.85K/mo, n=100); the active ox_doorlock corpus signal supports the top of the range.

Trend Signal

β†— rising β€” housing systems niche-selection 3.60; corpus ox_doorlock active.

Sales Angle

Position as the owner-key plus lockpick security layer that gives police something to respond to, riding active ox_doorlock demand. Recommended Tebex price $79.

Difficulty & Ship Time

intermediate Β· ships in 3-5h.