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 Instalação
Colocar o resource na sua pasta resources
Importar sql/install.sql (ou deixar a tabela criar-se automaticamente no primeiro arranque)
Adicionar ensure Agency-Doorlock ao server.cfg
Configurar config.lua (idioma, tecla de interação, permissão de configuração)
Dependências
oxmysql — obrigatórioox_target ou qb-target — opcionalESX / QBCore / QBox — opcional
Arquivo SQL
Importe este arquivo SQL no seu banco de dados antes de iniciar o recurso:
-- 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;