gta6/prompts
housing
Vaultintermediatehousing

Home Alarm & CCTV Security

ESX exports-based home security: owner-armed motion/door alarm and CCTV with a panic button that routes a server-validated dispatch to on-duty police.

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

Description

An owner-installed home security suite: arm or disarm a motion/door alarm at your property, watch via CCTV, and hit a panic button that dispatches on-duty police to the scene. The server owns the armed state and selects which players receive the dispatch, so the alarm cannot be disarmed remotely or spoofed. Servers sell it as the defensive counterpart to break-in scripts.

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/14-home-alarm-cctv-security.lua implements the arm/panic prompts and the tripped-alert waypoint on the client, and a server that holds the armed…

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

  • Server-wide spam β€” broadcasting the alert to every player instead of filtering to police floods the server. Filter by job.name == "police" server-side.
  • Client-armed state β€” keeping armed/disarmed on the client lets an intruder disarm locally. Hold it in the server armedHomes table.
  • Spoofed coords β€” trusting the panic UI's coordinates lets a player fake the location. Source dispatch coords from the server's trusted player position.

Corrective re-prompt: Hold the armed state and the dispatch routing entirely server-side: on "alarm:panic"/"alarm:intrusion" iterate ESX.GetPlayers() and TriggerClientEvent "alarm:tripped" only to players whose job.name == "police". Derive the dispatch coordinates from the server's record of the home/player, not from the client payload.

Framework Integration

  • ESX: getSharedObject(); ESX.GetPlayers() + xPlayer.job.name == "police" to scope the dispatch.
  • QBCore: exports["qb-core"]:GetCoreObject(); iterate QBCore.Functions.GetPlayers() and check Player.PlayerData.job.name.
  • QBox: exports.qbx_core:GetPlayer(src); integrate with ps-dispatch/qb-dispatch instead of a raw waypoint for production alerts.

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 β€” corpus: signal-scraper corpus: housing/security<-ox_doorlock; alarm+CCTV extends the active door-lock ecosystem.

Sales Angle

Bundle with a lock/burglary pack as the defensive half β€” the alarm that turns a quiet break-in into a live police chase. Recommended Tebex price $159.

Difficulty & Ship Time

intermediate Β· ships in 2-4h.