gta6/prompts
police
Vaultintermediatepolice

Breathalyzer & Field Sobriety (DUI)

ESX/QBCore/QBox DUI toolkit: a breathalyzer BAC reading plus a field-sobriety check that has the server file the charge and suspend the license.

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

Description

A DUI enforcement toolkit for roleplay servers: an officer breathalyzes a nearby subject for a BAC reading, and when the reading is over the limit the server files the DUI charge and suspends the subject's driving license. Servers buy it because it closes a long-requested gap in the traffic-stop loop with a real, persisted consequence.

Prompt Template

You are writing a FiveM resource for esextended (stable, 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/police/15-breathalyzer-field-sobriety-dui.lua implements closest-player selection, a loaded breathalyzer animation, a server-computed BAC, and 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-side charge β€” applying the suspension on the client means it never persists and is trivially bypassed.
  • Unloaded breathalyzer anim β€” skipping the HasAnimDictLoaded wait makes the reading appear with no animation.
  • Half-registered round-trip β€” dui:fileCharge without RegisterNetEvent means the server never files the charge.

Corrective re-prompt: Compute the BAC and apply the charge + license suspension only in the server section (keyed by the target's identifier with an expiry), have the client send just the BAC threshold trigger, and register every net event with RegisterNetEvent plus a handler on its receiving side.

Framework Integration

ESX: local ESX = exports['es_extended']:getSharedObject(); key the suspension by xTarget.identifier and revoke the drive license via your licenses table. QBCore: local QBCore = exports['qb-core']:GetCoreObject(); use qb-phone/metadata for the suspension flag and QBCore:Notify for both parties. QBox: exports.qbx_core:GetPlayer(targetId); store the suspension in qbx player metadata; the BAC math and FST flow are framework-agnostic.

Profit Potential

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

Trend Signal

β†— rising β€” inferred: Breathalyzer/FST DUI flows are a frequently-requested traffic-RP mechanic, rising as civic-RP gains depth.

Sales Angle

Position as the missing DUI consequence loop for traffic/civic-RP servers β€” recommended Tebex price $149, bundled with a traffic-stop or MDT charge-sheet module.

Difficulty & Ship Time

intermediate Β· ships in 2-4h.