Features
Lock picking
The rear door of the battery van is opened with a lock pick. By default this is the script's own minigame: a pin tumbler lock in cut-away, with springs, driver pins, brass key pins and the shear line, the tension wrench in the keyway and the pick under the pins.
01How to pick it
- The wrench holds tension, so only one pin binds at a time and you do not know which one.
- Choose a pin with A / D or the arrow keys, or move the mouse over it.
- Hold W, Space or the left mouse button to lift it, and let go when the gap between its pins sits on the dashed shear line. The pin clicks, its light turns green and it stays up.
- A pin that is not binding is loose: it goes all the way up and springs straight back down. Find the stiff one, set it, then look for the next.
- Set every pin before the time runs out and the plug turns: the van door opens.
Warning
A failed lock pick sets off the van alarm and sends the guards at the player. Put your police dispatch export in Config.Missions.steal.onAlarm (config/config.lua). The player can try the lock again.
02Difficulty
The difficulty of the heist (1 to 5, chosen for each mission in /bunkeradmin) picks the level of the lock. Everything is in Config.LockpickGame:
Config.LockpickGame = { provider = 'builtin', -- 'builtin', 'ox_lib' or 'qb-lockpick' levels = { [1] = { pins = 3, window = 9, time = 45, picks = 3, hint = true }, [2] = { pins = 4, window = 8, time = 45, picks = 3, hint = true }, [3] = { pins = 4, window = 6, time = 40, picks = 2, hint = false }, [4] = { pins = 5, window = 5, time = 40, picks = 2, hint = false }, [5] = { pins = 6, window = 4, time = 35, picks = 2, hint = false }, },}03Another minigame
Set provider to 'ox_lib' to use the ox_lib skill check (its keys and steps come from Config.MissionDifficulty), or to 'qb-lockpick' to use that resource. If qb-lockpick is not running, the built-in lock is used.
04Testing it alone
Open /bunkeradmin, go to System Tests and use the Lock picking card: it opens the lock at any of its five levels, without a heist and without a van. When you close it you are back on the tests tab.
Still stuck? Send us your server log on Discord and we will sort it out with you.
Ask on Discord