
Description
A lockpick minigame — feel for the pin with WASD, close or far, ESC to give up.
One export call. Use it for anything: house doors, cars, lockers, crates, drawers.
Features
- [+] Lockpick minigame: turn with WASD to find the pin
- [+] Feel how close or far you are from the pin, ESC to give up
- [+] One export call that blocks and hands back the result
- [+] Works with any script: house doors, cars, lockers, crates, drawers
- [+] Set difficulty with the pin count, 3 to 6 by lock type
- [+] Blocks other keys while it runs, through a state bag or an event
- [+] Dying mid-attempt or the resource stopping closes it, nobody gets stuck
Using it
-- true when they get in, false on a miss or a cancel
local ok = exports['x3d_lockpick']:miniGameLockPick(4) -- 4 = how many pins
if ok then
-- open the door, start the car, whatever
end
That is it. No callbacks, no events to chase; the call blocks and hands you the answer.
Difficulty is the pin count
More pins means longer and more chances to slip. 3 to 6 is the useful range.
An ordinary house door 3, a safe 5, a storeroom 6.
Blocking other keys while it runs
A state bag is set for you, readable from anywhere:
if LocalPlayer.state.minigame then return end -- e.g. block the inventory key
Or hook the event if you would rather drive a HUD yourself:
AddEventHandler('x3d_lockpick:active', function(active) ... end)
It will not strand anyone
Dying mid-attempt, or the resource stopping, closes the minigame and returns false. An attempt longer than 45 seconds counts as a miss.
Version history
- 1.1.1 — Released 13/10/2026 00:18
- 1.0.0 — Released 24/09/2026 10:53
Related scripts

- Updated
X3D Damage
Set every weapon's damage yourself, with bleed, slow, stun, knockdown and lifesteal effects. Weapon skins supported. ESX or standalone.

- Updated
X3D Safe Cracking
A dial-cracking minigame: turn with A and D, press E on the notch. One export, no dependencies.

- Updated
X3D House Robbery
Pick the door, search the floor, crack the safe, with a cooldown per house and both minigames in the same zip.

- Updated
X3D Sell Drug
Shady buyers appear around the map on a timer and pay in black money. Runs on ESX or standalone.
Posts that cover this script
- 24/09/2026
Free FiveM crime scripts: drug selling, house robbery, lockpick and safe-cracking minigames for ESX
X3D's free gang-side set for ESX — X3D Sell Drug (buyers rotate around the map, pay black money), X3D House Robbery (pick, loot, crack the safe, per-house cooldown), X3D Lockpick and X3D Safe Cracking (minigames behind one export). Everything is checked server side, with notes on wiring them into what you already run.
Read more - 07/10/2026
Free FiveM minigame scripts: lockpick and safe cracking in one export call, plus rewards cheaters can't fake
Free FiveM minigame scripts from X3D: X3D Lockpick (WASD pin finding), X3D Safe Cracking (GTA-style dial with no dependencies, not even ESX) and X3D House Robbery, which uses both. One blocking export call, difficulty you set, other keys blocked while playing, and server-side code that stops players from simply reporting a win.
Read more - 24/09/2026
QBCore vs ESX Legacy vs Qbox: which framework to pick for a FiveM server in 2026
QBCore vs ESX Legacy vs Qbox: script support, install difficulty, performance, migration cost, and what to pick for a new server or a 2,000-player city.
Read more - 16/09/2026
FiveM Scripts Explained: Types, ESX vs QBCore vs Standalone, and How to Choose
Read more



