gta6/prompts
police
Vaultadvancedpolice

Warrant Request & Service Workflow

ESX/QBCore/QBox warrant workflow where an officer files arrest/search warrants with evidence, a judge approves, and service unlocks entry/arrest authority.

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

Description

A full warrant pipeline for civic roleplay: an officer files an arrest or search warrant with evidence, a judge reviews the pending queue and approves, and only a served, approved warrant unlocks entry/arrest authority. It is distinct from an MDT warrant lookup — this is the file→approve→serve state machine that puts a judge between an officer and a forced entry.

Prompt Template

You are writing a FiveM resource (client.lua + server.lua) for a warrant request 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.

Expected Output

The reference Lua at content/expected-outputs/police/23-warrant-request-service-workflow.lua implements a server-owned pending→approved→served state machine: officers file, a judge approves from 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

  • Officer self-approval — tracking status on the client lets an officer skip the judge; the server owns the state machine and only a judge moves pending→approved.
  • Unchecked service — granting authority without verifying status == 'approved' unlocks pending/unfiled warrants; validate the transition server-side.
  • Half-registered round-trip — RegisterNetEvent without AddEventHandler on one side makes approvals no-op; register and handle on both sides.

Corrective re-prompt: "Enforce the state machine on the server: warrant:approve requires isJudge and only moves pending→approved; warrant:service requires isOfficer AND status=='approved' before it sets served and grants authority. Wire RegisterNetEvent + AddEventHandler on both client and server for file, list, approve, and service."

Framework Integration

  • ESX: resolve exports['es_extended']:getSharedObject(); isJudge checks xPlayer.job.name == 'judge', isOfficer checks 'police'; persist warrants in a warrants table via MySQL.
  • QBCore: use exports['qb-core']:GetCoreObject() and Player.PlayerData.job.name; surface the pending queue inside the MDT for judges.
  • QBox: call exports.qbx_core:GetPlayer(src) and store warrant rows with oxmysql, exposing an export so the entry/arrest scripts can query served-warrant authority.

Profit Potential

$280–$3500/mo on Tebex (expected ~$1100). [INFERRED] priced inside the $50-389 FiveM script band for a rising civic-RP niche; corpus median seller $11.85K/mo (signal-scraper tebex_snapshot n=100).

Trend Signal

rising — strategy: Search/arrest warrants are called out in MASTER-200 id-077 Wanted-Level Overhaul ($99); judge-approval workflow rising in civic-RP. Distinct from MDT warrant lookup.

Sales Angle

Sell as the civic-RP warrant pipeline that puts a judge between an officer and a forced entry — file, approve, serve, authority. Recommended Tebex price $279.

Difficulty & Ship Time

advanced · ships in 1 day.