Standalone
Agency-Doorlock
The smartest way to lock down your city. Agency-Doorlock turns any door into a secure, persistent lock with effortless in-game setup — aim at a door, press E, done (double doors auto-pair). Open via the [E] prompt or with ox_target / qb-target. Control access by job + grade, gang + grade, specific players, or leave it open to everyone. Locked doors physically stay shut (native door system), every lock state is saved to the database and synced to all players, and every action is validated server-side. Sleek glassmorphism setup UI, 25 languages, QBCore / QBox / ESX / Standalone — auto-detected.

01 Installation
Place the resource in your resources folder
Import sql/install.sql (or let the table auto-create on first start)
Add ensure Agency-Doorlock to server.cfg
Configure config.lua (language, interaction key, setup permission)
Dependencies
oxmysql — requiredox_target or qb-target — optionalESX / QBCore / QBox — optional
SQL File
Import this SQL file into your database before starting the resource:
-- Agency Doorlock — database table (auto-created on first start, this is a manual fallback)
CREATE TABLE IF NOT EXISTS `agency_doorlock` (
`id` INT NOT NULL AUTO_INCREMENT,
`label` VARCHAR(64) NOT NULL DEFAULT 'Door',
`locked` TINYINT(1) NOT NULL DEFAULT 1,
`doors` LONGTEXT NOT NULL,
`access` LONGTEXT NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;