XS-DoorLock
Door locks for Qbox and QBCore, set up in game from one admin console. Keys, keycards, keypads, padlocks and scanners, opened by job, gang or named player.

What it does
It ships with no doors. An admin types /doors, walks into a building and presses Scan building: every door nearby gets a number in the world, with double doors already paired. Tick the real ones, give them a lock and a list of who gets in, and they are live for every player. Each door has its own lock, from a key or a keycard to a keypad, a combination padlock, a fingerprint reader, an eye scanner or a plain button, and its own list of jobs and ranks, gangs and named players. Players open them from ox_target or qb-target, or with E when there is no target.
What you get
An admin console with every building on a satellite map, its doors in a table and a drawer for the door you pick
Scan a building: every door near you is numbered in the world and double doors are paired, ready to set up together
Seven locks: key, keycard, keypad, combination padlock, fingerprint, eye scanner and button, each with its own screen
Access by job and rank, gang and rank, named players or everyone, with an on-duty option
Per door, people on the list can skip the code, card or key, or still have to use it
Keys and keycards are items. Change a lock and every old copy stops working
Building keycards that open every card door in a building
Keypads and padlocks lock out after too many wrong codes, and can sound an alarm
Lockpicking on the locks you choose, with an ox_lib skill check
Works with ox_target, qb-target, sleepless_interact, interact or qtarget, or E and G without one
Single, double, sliding and garage doors, plus vault doors and barrier arms that turn
New doors in a building start with the last one’s lock and people, so a whole building takes minutes
Try it in your browser
The real Access Console on a sample server, plus the lock screens players see at a door. Switch between them with the buttons in the corner. The keypad code is 4719.
Runs in this page on sample data.
A look inside
Latest updates
Before you install
- It ships with no doors. Give yourself the console with add_ace group.admin xs.doorlock.admin allow, then set doors up with /doors.
- Keys and keycards are items. Paste items/ox_inventory.lua or items/qb_core.lua into your items file, or the console says they are missing.
- Turn off any other door lock on the same doors. Two door locks on one door fight each other.
- No ESX. Qbox and QBCore only.