gta6/prompts
heists
Vaultadvancedheists

Stealth Takedowns — Guard Patrols, Vision Cones & Body Drag

ESX/QBCore/QBox stealth layer: patrolling guard peds with dot-product vision cones, a knockout takedown, body drag, and a server-authoritative shared alarm.

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

Description

A stealth-infiltration layer: guard peds walk a patrol route with dot-product vision cones plus a line-of-sight check, the player can knock one out and drag the body out of view, and any detection raises a single server-authoritative alarm. Servers buy it because AI patrols and body-drag stealth are underserved and instantly raise a heist pack's production ceiling.

Prompt Template

You are writing a FiveM resource for qb-core (QBCore). Produce TWO files…

🔒 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 lives at content/expected-outputs/heists/19-stealth-guard-patrol-takedown.lua. It implements model-loaded patrol guards, a vision cone that pairs HasEntityClearLosToEntity with a…

🔒 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-only alarm — per-client alarm state desyncs the heist; hold one alarmActive flag on the server and broadcast with TriggerClientEvent(..., -1, ...).
  • Cone sees through walls — a pure dot-product cone ignores geometry; gate it with HasEntityClearLosToEntity.
  • Anim before load — the takedown melee clip no-ops without RequestAnimDict + the HasAnimDictLoaded wait.
  • Drag attach jitter — re-attaching every frame without a dragging guard fights the physics; attach once, detach on toggle.

Corrective re-prompt: Make the alarm server-authoritative — move alarmActive into server.lua, set it inside the stealth:spotted handler, broadcast the notify to -1, and clear it via SetTimeout. Keep the client purely a detector that fires stealth:spotted.

Framework Integration

  • ESX: swap notifications to TriggerClientEvent('esx:showNotification', -1, ...); the patrol/cone/drag logic is framework-agnostic.
  • QBCore: exports['qb-core']:GetCoreObject(), broadcast via TriggerClientEvent('QBCore:Notify', -1, ...); tie the alarm into ps-dispatch if present.
  • QBox: use exports.qbx_core and exports.qbx_core:Notify; route the alarm to ox_lib notifications and an ox_target takedown zone.

Profit Potential

$250–$3500/mo on Tebex (expected ~$900). [INFERRED] priced within the $50-389 script band against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo), scaled for a rising underserved-stealth niche.

Trend Signal

rising — strategy: Niche matrix: AI guard patrols plus body-drag stealth are underserved; raise a pack's ceiling.

Sales Angle

Position as the stealth layer that lifts an entire heist pack — patrols, vision cones, silent takedowns, body drag — content most packs lack. Recommended Tebex price $199.

Difficulty & Ship Time

advanced · ships in 1 day.