
Description
A safe cracking minigame — turn the dial with A and D, the light comes on at the notch, press E to lock it in. Clear every lock and it opens.
No dependencies at all, not even ESX.
Features
- [+] Safe cracking minigame: turn the dial with A and D
- [+] The light comes on at the notch, press E to lock it in; clear every lock to open
- [+] One export call that blocks and hands back the result
- [+] Set difficulty with the lock count: house 3, shop 4, bank 6
- [+] No dependencies at all, not even ESX
- [+] Uses GTA's own dial texture and turning sounds, nothing extra to stream
- [+] 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 it opens, false on a miss or a cancel
-- pass a table of dial numbers (0-99), one per lock; the table length is the lock count
local ok = exports['x3d_safe']:createSafe({ 12, 47, 83, 25 }) -- 4 locks
if ok then
-- hand over what was inside
end
One line, blocking, no callbacks to chase. Pressing E off the notch, or ESC, is a miss.
Difficulty is the lock count
More locks (more numbers in the table) means finding the notch more times. A house safe 3, a shop safe 4, a bank safe 6.
Uses what the game already ships
The dial texture and the turning sounds are GTA's own (MPSafeCracking, SAFE_CRACK). Not a byte of streamed content.
Blocking other keys while it runs
if LocalPlayer.state.minigame then return end
AddEventHandler('x3d_safe:active', function(active) ... end)
It will not strand anyone
Dying mid-attempt, or the resource stopping, closes the minigame and returns false.
Version history
- 1.1.3 — Released 13/10/2026 00:18
- 1.1.1 — Released 12/10/2026 10:29
- 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 Lockpick
A lockpick minigame felt out with WASD, called with one export and usable from any script.

- 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


