XyraLScripts
Door locks

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.

ReleasedFreeQboxQBCore
Version — Stars — Downloads — Updated —
XS-DoorLock
Overview

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.

Features

What you get

01

An admin console with every building on a satellite map, its doors in a table and a drawer for the door you pick

02

Scan a building: every door near you is numbered in the world and double doors are paired, ready to set up together

03

Seven locks: key, keycard, keypad, combination padlock, fingerprint, eye scanner and button, each with its own screen

04

Access by job and rank, gang and rank, named players or everyone, with an on-duty option

05

Per door, people on the list can skip the code, card or key, or still have to use it

06

Keys and keycards are items. Change a lock and every old copy stops working

07

Building keycards that open every card door in a building

08

Keypads and padlocks lock out after too many wrong codes, and can sound an alarm

09

Lockpicking on the locks you choose, with an ox_lib skill check

10

Works with ox_target, qb-target, sleepless_interact, interact or qtarget, or E and G without one

11

Single, double, sliding and garage doors, plus vault doors and barrier arms that turn

12

New doors in a building start with the last one’s lock and people, so a whole building takes minutes

Live demo

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.

This is the real thing — only the data is made up. Open in a new tab →
Needs a bigger screen. Open this on a desktop, or open it directly.
Screenshots

A look inside

Before installing

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.