gta6/prompts
appearance
Vaultintermediateappearance

Restricted-Skin Whitelist Enforcer

ESX/QBCore/QBox anti-exploit guard that restricts restricted skins (police/EMS) to authorized jobs only and reverts unauthorized players 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
~88 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25

Description

An anti-exploit guard that maps restricted skins (police/EMS uniforms) to authorized jobs and, when an unauthorized player is detected wearing one, reverts them server-side. Checks fire on equip, on spawn, and on a periodic sweep so players can't slip a restricted skin past the gate.

Prompt Template

Write a FiveM Lua resource that enforces a restricted-skin whitelist, targeting <esx|qbcore|qbox via its exports (never hardcode the framework global).

πŸ”’ 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

See content/expected-outputs/appearance/29-uniform-whitelist-enforcer.lua β€” implements server-side job verification on equip + a periodic sweep and a load-guarded client revert for unauthorized…

πŸ”’ 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 job checks are spoofed; verify the real job server-side.
  • Spawn-time wearers bypass an equip-only check.
  • The revert swaps the model before it loads, breaking the ped.

Corrective re-prompt: "Players still wear restricted uniforms by spoofing the client. Move all job verification server-side using the framework job API, add a spawn-time and periodic sweep, and guard the revert with RequestModel/HasModelLoaded. Return corrected client.lua and server.lua."

Framework Integration

  • ESX: read the job with xPlayer.getJob().name server-side and compare to the skin's required job.
  • QBCore: check Player.PlayerData.job.name via QBCore.Functions.GetPlayer(src) before allowing the skin.
  • QBox: resolve exports.qbx_core:GetPlayer(src) and read the job from qbx player data.

Profit Potential

$150–$2000/mo on Tebex (expected ~$520). [INFERRED] priced in the $50-389 script band against the signal-scraper tebex_snapshot corpus (median seller $11.85K/mo, n=100), scaled for a stable admin-tooling niche.

Trend Signal

β†’ stable β€” strategy: Restricted-skin whitelist enforcer is an anti-exploit utility servers pay for; admin-tooling niche (niches.md Niche 5).

Sales Angle

Position as the anti-exploit guard that keeps job uniforms exclusive. Recommended Tebex price $99.

Difficulty & Ship Time

intermediate Β· ships in 2-4h.