gta6/prompts
heists
Vaultintermediateheists

Keycard Cloning — Pickpocket-to-Access

ESX/QBCore pickpocket-to-keycard layer: lift a swipe off a staff NPC, server rolls a clone chance, then a cloned-keycard item gates a restricted door.

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

Description

A pickpocket-to-access loop: the player lifts a keycard swipe off a staff NPC, the server rolls whether the clone succeeds, and a cloned-keycard item then gates a restricted door. Servers buy it because it is a reusable access primitive that plugs into any heist instead of a one-off door.

Prompt Template

You are writing a FiveM resource for esextended (ESX). Produce TWO files…

🔒 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 lives at content/expected-outputs/heists/17-keycard-clone-pickpocket.lua. It implements closest-NPC pickpocketing with a loaded give/take anim, a server-rolled clone chance that…

🔒 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 grant — rolling the clone or adding the item on the client lets any player spawn access; both belong on the server.
  • Anim before load — the give/take gesture no-ops without RequestAnimDict + the HasAnimDictLoaded wait loop.
  • Client door check — verifying the keycard item client-side lets a spoofed keycard:swipe open the door; check the item on the server.
  • Net-event spam — without a per-ped lifting guard the player can farm one NPC every frame.

Corrective re-prompt: Move the clone roll and addInventoryItem('cloned_keycard', 1) into the keycard:pickpocket server handler, and in keycard:swipe read getInventoryItem on the server and return the boolean via TriggerClientEvent('keycard:swipeResult', src, ok) — the client must never decide access.

Framework Integration

  • ESX: exports['es_extended']:getSharedObject(); getInventoryItem/addInventoryItem for cloned_keycard, ESX.ShowNotification client-side.
  • QBCore: swap to exports['qb-core']:GetCoreObject(), Player.Functions.AddItem('cloned_keycard', 1) and Player.Functions.GetItemByName; pair the door with qb-doorlock.
  • QBox: use exports.qbx_core and exports.ox_inventory:AddItem; gate the door with ox_doorlock keycard groups.

Profit Potential

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

Trend Signal

stable — corpus: Maps to ox_doorlock keycard-access activity (corpus); steady demand as a reusable access layer.

Sales Angle

Position as a drop-in access-control layer for any heist pack — restricted doors, evidence rooms, vaults — not a single scripted door. Recommended Tebex price $69.

Difficulty & Ship Time

intermediate · ships in 2-4h.