gta6/prompts
police
Vaultintermediatepolice

Police Armory & Rank Loadout

ESX/QBCore/QBox rank/cert-gated armory with serial-numbered firearm checkout, ammo accounting and auto-return on clock-out.

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 rank/cert-gated police armory: officers open the armory at a fixed coord, the server returns only the catalog their rank allows, and each checkout mints a serial number with ammo accounting and auto-returns on clock-out. It outsells the stock armory by adding serials and accounting an internal-affairs review can actually audit.

Prompt Template

You are writing a FiveM resource (client.lua + server.lua) for a rank-gated police…

🔒 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/21-police-armory-rank-loadout.lua implements a server-owned rank catalog, an allowed-item gate on checkout, a server-side serial sequence 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-side catalog/grant — building the catalog and granting weapons locally lets anyone pull a rifle; the server owns the rank catalog and the allowed-item check.
  • Client-side serials — tracking serials and issued items on the client makes returns and accounting unenforceable; keep both server-side.
  • Bad ped handle — GiveWeaponToPed on GetPlayerPed(-1) or a not-yet-spawned ped fails; use PlayerPedId() in the issued handler.

Corrective re-prompt: "Move the rank catalog and the allowed-item check entirely server-side: the server validates getRank(src) against RankCatalog on every checkout, mints the serial from a server-side sequence, stores it in a per-officer issued registry, and clears that registry on playerDropped and clock-out. The client only renders the catalog the server sends."

Framework Integration

  • ESX: resolve exports['es_extended']:getSharedObject() and derive rank from xPlayer.job.grade; pair with ox_doorlock on the armory door.
  • QBCore: use exports['qb-core']:GetCoreObject() and Player.PlayerData.job.grade.level; add weapons via ox_inventory/qb-inventory.
  • QBox: call exports.qbx_core:GetPlayer(src) and store serials as ox_inventory metadata so the serial follows the weapon item.

Profit Potential

$150–$2000/mo on Tebex (expected ~$560). [INFERRED] priced inside the $50-389 FiveM script band for a stable armory staple; corpus median seller $11.85K/mo (signal-scraper tebex_snapshot n=100).

Trend Signal

stable — corpus: Rank-gated armory rooms are the canonical ox_doorlock + ox_inventory use case; steady staple, differentiate on serials/accounting.

Sales Angle

Position above the stock armory: serial-numbered checkout and ammo accounting that survives an internal-affairs audit. Recommended Tebex price $139.

Difficulty & Ship Time

intermediate · ships in 1 day.