gta6/prompts
vehicles
Vaultadvancedvehicles

Advanced Emergency Lighting (ELS)

An ESX/QBCore/QBox emergency-lighting controller that cycles warning/secondary/primary light and siren stages on a service vehicle and syncs each stage to all clients 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
~59 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25

Description

An advanced emergency-lighting controller for ESX/QBCore/QBox service vehicles: one key cycles through off, warning, secondary and primary stages, toggling sirens (muted at lower stages) and indicator/lighting patterns. Each change is broadcast through the server so every nearby player sees the same lights. Servers sell it because emergency-services communities treat synced, multi-stage ELS as a must-have.

Prompt Template

You are writing a FiveM resource for ESX. ONE Lua file, client + server sections,…

🔒 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/vehicles/27-emergency-lighting-els.lua implements a four-stage in-vehicle light/siren cycle with a key-fob animation, a network-id round-trip through the…

🔒 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

  • Local-only lights — applying the stage on one client leaves others dark; broadcast through the server.
  • Raw handle over the wire — entity handles are client-local; serialize with VehToNet/NetToVeh.
  • Unvalidated stage — a malformed stage value spams sirens; clamp/validate it server-side before re-broadcast.

Corrective re-prompt: "Send VehToNet(veh) and an integer stage to the server, validate the stage is in 0..3 and the netId is a number, then TriggerClientEvent('els:update', -1, ...) to all clients which resolve the vehicle with NetToVeh before applying — never apply the stage only locally."

Framework Integration

ESX: getSharedObject() is only used for job-gating which players may toggle (e.g. police/ems). QBCore: gate the toggle on Player.PlayerData.job.type == 'leo' (or ems) before accepting els:sync. QBox: same job gate via exports.qbx_core:GetPlayer(source); the netId sync path is framework-agnostic.

Profit Potential

$400–$6000/mo on Tebex (expected ~$1500). [INFERRED] derived from the $50-389 paid-script band against the signal-scraper tebex_snapshot corpus (median seller $11.85K/mo, n=100), scaled for a hot emergency-services niche.

Trend Signal

🔥 hot — strategy: Niche-matrix: emergency-services servers are a large active pre-launch segment; advanced ELS patterns are a top paid ask — hot.

Sales Angle

Position as the synced, multi-stage ELS that separates a serious emergency-services server from a cosmetic light bar. Recommended Tebex price: $389.

Difficulty & Ship Time

advanced · ships in 1 day.