1/4

Standalone Scripts

Agency-Doorlock

5.0(4)
One-timeFree
Free
Runs on
  • QBCore
  • Qbox
  • ESX
  • No framework
  • Updates included, at no extra cost
  • Support anytime at help.agencyg.de, usually within a few hours

Payment and delivery run through Tebex, the official payment partner for Cfx.re and FiveM. Your scripts are assigned to your Keymaster account immediately.

Description

🔐 Agency Doorlock

Lockable doors, done right.

Set up any door in seconds without leaving the game, decide exactly who gets in, and lock or unlock from your phone with the free Agency Companion app.

🧩 QBCore · QBox · ESX · Standalone, auto-detected, plug & play.


✨ Highlights

  • 🛠️ One-step setup, type /adoorlock, aim at a door, press E, save. Double doors pair automatically.
  • 🔒 Real locked doors, uses FiveM's native door system, so a locked door physically will not open.
  • 🎯 E key and Target, key prompt, ox_target or qb-target. Use one or both.
  • 🔑 Item keys, keys, keycards and badges per door, master keys for every door and optional single-use items.
  • 🔢 PIN codes, protect any door with a 1–8 digit code.
  • 📱 Phone remote control, lock and unlock your doors with the free Agency Companion app (iOS & Android).
  • 🌍 25 languages included, and you can add your own in a minute.

 

👮 Access Control

Every door gets its own rules, set in a clean in-game panel:

  • 💼 Job + minimum grade
  • 🏴 Gang + minimum grade
  • 👤 Individual players (Citizen ID / identifier)
  • 🔑 Item keys
  • 🌐 Everyone

🛡️ Every lock toggle and every new door is checked on the server. No client can unlock a door it has no access to.

 

🚗 Garage Doors & Gates

  • ⬆️ Hold open while unlocked, the gate opens and stays open, even after you drive away. Lock it and it closes again.
  • 📏 Range per door, wide gates get a bigger interaction range, normal doors stay as they are.
  • ⏱️ Auto-lock, doors lock themselves again after a set number of seconds.

 

💾 Persistent & Synced

  • 🗄️ All doors are stored in the database and synced live to every player.
  • 🔁 Start Locked per door, after a restart every door returns to the state you set, no matter who left it open.
  • 🔊 Lock, bolt and creak sounds included.

 

🔄 Switching from ox_doorlock?

Import all your existing ox_doorlock doors with one click

👀 You see a preview of every door before anything is imported. Names, double doors, groups with grades, players, PIN codes, item keys, auto-lock and hold-open are carried over. Doors that already exist are skipped, so you can run the import as often as you like.

 

💻 For Developers

Your own scripts can give and remove door access per player through server exports, for example a housing script handing out house keys:

AddPlayerAccess · RemovePlayerAccess · HasPlayerAccess · GetPlayerAccess · IsReady

📡 Plus the server event agency-doorlock:accessChanged. Changes are saved and synced instantly.

 

🏗️ Custom MLO Doors

A door from an MLO will not select? 🔍 /dlcheck shows exactly why in the F8 console, and you can adjust the matching limit in the config.


📦 Requirements

  • ✅ oxmysql (required)
  • ➕ ox_target, qb-target or jg-textui (optional)

 

⚙️ Installation

  1. 📁 Put Agency-Doorlock into your resources folder.
  2. 📝 Add ensure Agency-Doorlock after ensure oxmysql in your server.cfg.
  3. ▶️ Start the server. The database table is created automatically.
  4. 🎛️ Set language, interaction mode and setup permission in config.lua

✏️ The config and all language files stay fully editable.


⭐ Agency Scripts

Agency Doorlock is a 🎁 free release by Agency Scripts.

🛒 Premium scripts & packs: shop.agencyg.de 💬 Discord & support: discord.gg/RTax3aBMUs


Agency-Doorlock

Free

Changelog

Every update of Agency-Doorlock, straight from our Discord.

1.1.8LatestOct 7, 2026

🔧 Improved

  • Auto-Detect: the "detect doors nearby" button has a tidier design and clearer result messages
  • Editor: a slimmer footer with just the Agency Doorlock name and the support links
  • Translations: detection messages reworded in all 25 languages

📦 Update notes

  • Replace the resource folder, your config.lua and all saved doors stay untouched
1.2.0Oct 7, 2026

✨ New

  • Item keys: New Items tab in /adoorlock, anyone carrying one of the listed items can lock and unlock that door
  • Master items: Items in Config.ItemKeys.MasterItems open every door
  • Single use: Items in Config.ItemKeys.ConsumeItems are removed once per use, in game and from the Companion app
  • Inventories: Works with ox_inventory, QBCore and ESX, QBox through ox_inventory

🔧 Improved

  • ox_doorlock import: Item keys are now carried over instead of being left out
  • Access: Items are checked last, so players with job, gang, player or Everyone access never use up an item
  • Config: config.lua is sorted into nine numbered sections with a table of contents, all options and defaults stay the same
  • Languages: All new texts are translated into all 25 languages

⚙️ Config

  • New block Config.ItemKeys with Enable, Inventory, MasterItems and ConsumeItems

📦 Update notes

  • Replace the Agency-Doorlock folder and keep your config.lua, item keys work without the new block
  • For the new layout and the item settings, take the new config.lua and copy your values over
  • No database change needed
1.1.7Sep 27, 2026

✨ New

  • Server exports: AddPlayerAccess(doorId, player) and RemovePlayerAccess(doorId, player)
  • Server exports: HasPlayerAccess(doorId, player), GetPlayerAccess(doorId) and IsReady()
  • player can be an online server ID or an identifier: citizenid on QBCore and Qbox, identifier on ESX, license on standalone
  • Access changes are saved to the database and synced live to every player, without giving setup or admin rights
  • Server event: agency-doorlock:accessChanged with doorId, identifier and granted for logs and custom scripts

📦 Update notes

  • Replace the resource folder and keep your config.lua, no database change needed
  • Full reference in README.md and on docs.agencyg.de/doorlock/exports
Show all 7 versions
1.1.6Sep 16, 2026

✨ New

  • Import selected doors from ox_doorlock with a preview showing status, jobs, gangs, minimum grades, and unsupported settings.
  • Select all or no doors before importing. Imported doors work immediately without a restart.
  • Import carries over names, single and double doors, lock state, jobs, gangs, citizen IDs, 1 to 8 digit passcodes as PINs, auto-lock, interaction range, hidden prompts, and hold open.
  • Run adoorlock_import for a preview or adoorlock_import confirm to import every new door.
  • The import is available in all 25 languages.

🔧 Improved

  • Importing again skips doors Agency-Doorlock already locks at the same location.
  • On start, the server console reports when doors are available to import.

📦 Update notes

  • The import is available only while ox_doorlock is running. Remove ensure ox_doorlock from server.cfg after importing, as both scripts lock the same doors.
  • Item keys, lockpicking, and passcodes that are not 1 to 8 digit numbers cannot be imported. The preview warns about unsupported settings.
  • For doors with a job or gang and a passcode, job or gang members can open the door without the PIN; everyone else still needs it.
  • To update from 1.1.x, replace all files and keep config.lua. Keep edited files in shared/locale/; missing new text appears in English.
  • No database changes are needed. Restart Agency-Doorlock, and have players who were online during the update reconnect to load the new menu.
  • For a new installation, see README.md under Installation.
1.1.2Aug 3, 2026

✨ New

  • Agency-Doorlock: Enter a door model name or hash in the /adoorlock configurator.
  • Agency-Doorlock: Automatically scans the nearby area for matching door entities.
  • Agency-Doorlock: Use “Add All” to add multiple nearby doors with the same model hash at once.
  • Agency-Doorlock: Supports custom mapping props and custom model names.

📦 Update notes

  • Agency-Doorlock: Version v1.1.2
1.1.1Aug 1, 2026

✨ New

  • Garage doors and gates can stay open while unlocked using the per-door Hold open option in /adoorlock.
  • Locking a hold-open door closes and locks it; combine with Auto-lock to close it after N seconds.
  • Set interaction range per door for locking and unlocking, from 0.5 to 10 m with a slider, or up to 50 m using the number box.

🔧 Improved

  • Door targeting selects the door you are deepest inside the interaction range of.
  • ox_target and qb-target eye options use the widest range requested by any door of that model.
  • Per-door ranges are validated and clamped server-side when saved; blank or invalid values use the configured default.
  • Hold-open and interaction-range labels are translated into all 25 supported languages: EN, DE, BG, CS, DA, EL, ES, FI, FR, HR, HU, IT, JA, KO, NL, NO, PL, PT, RO, RU, SK, SV, TR, UK, ZH. Language files have identical complete key sets.

🐛 Fixed

  • The Companion pairing card now uses the server language; 17 app and pairing strings previously fell back to English in 23 of 25 languages.
  • Translation placeholders and formatting were checked before release.

⚙️ Config

  • Config.HoldOpenRatio controls door travel; 1.0 is fully open, and lower values can prevent shutters clipping into geometry.
  • Config.HoldOpenDistance sets the hold-open enforcement range.
  • Config.MaxInteractDistance sets the server-side range limit, defaulting to 50 m.
  • Per-door interaction range defaults to Config.InteractDistance; untouched doors keep their existing behavior.

📦 Update notes

  • Replace the Agency-Doorlock folder, or overwrite fxmanifest.lua, config.lua, client/main.lua, client/configurator.lua, and server/main.lua.
  • Also overwrite html/index.html, html/script.js, html/style.css, and all 25 files in shared/locale/.
  • No manual database changes or migration are required; existing doors use defaults and retain access rules, PINs, keybinds, and configs.
  • Requires oxmysql, which was already required. Restart the resource via txAdmin or ensure Agency-Doorlock.
  • With Hold open off, door behavior is identical to v1.1.0.
1.1.0Jul 4, 2026

✨ New

  • Companion app: Link independently from Agency-Phone and Agency-Elevator using a QR code or 6-digit code.
  • Pairing: Run /adlconnect or /adlc for a QR code, or find it in the /adoorlock setup menu.
  • Pairing: Enter the 6-digit code in the app if you cannot scan; it remains visible while a device is linked.
  • Players: View doors you can access and their live locked or unlocked state.
  • Players: Lock or unlock doors you own when nearby, following the same in-game access rules.
  • Players: Set a GPS waypoint to any door from the app.
  • Admins: Override any server door remotely with no distance limit.
  • Admins: Delete doors from the app; static config doors remain protected.
  • Admins: Open the in-game door setup menu remotely to add or edit doors.
  • Companion app: The free app is available on iOS and Android, with setup guidance at companion.agencyg.de.
  • Companion app: One app links to Agency-Doorlock, Agency-Phone, Agency-Pad, Agency-Elevator, Agency-Reports and more.

🔧 Improved

  • Localization: New app, pairing and UI text is translated into all 25 supported languages: EN, DE, BG, CS, DA, EL, ES, FI, FR, HR, HU, IT, JA, KO, NL, NO, PL, PT, RO, RU, SK, SV, TR, UK, ZH.

🐛 Fixed

  • Setup menu: The 6-digit pairing code always renders under the QR code.
  • Companion QR card: Expands and collapses cleanly without overlapping the door list.
  • NUI: Improved panel opening and closing behavior and other minor polish.

⚙️ Config

  • Set Config.Companion.Enable = false to disable the optional integration.
  • Pairing codes expire after Config.Companion.TokenTTL, defaulting to 5 minutes.

📦 Update notes

  • Replace the Agency-Doorlock folder or overwrite the updated files.
  • Replace fxmanifest.lua, config.lua, client/main.lua, client/companion.lua, client/configurator.lua, server/main.lua.
  • Replace server/companion.lua, server/companion_relay.lua, html/index.html, html/script.js, html/style.css.
  • Replace html/js/companion.js, html/js/qrcode.min.js, shared/locales.lua and all files in shared/locale/.
  • Review the Config.Companion block in config.lua; it is safe to keep your own config.
  • Existing doors, keybinds, sounds and configs work without migration or data loss.
  • Older config.lua files without a Config.Companion block use safe defaults, keeping the feature enabled.
  • Pairing tables are created automatically on first start. No manual SQL or database changes are needed.
  • oxmysql remains required. Restart the resource via txAdmin or ensure Agency-Doorlock.

Reviews for this script

5.04 reviews

Do you have this script?

Then say what it is like. Two minutes, and it is the thing the next person reads before deciding.

Write a review

Great

I need it help my server save my qian

Ching· Product Review· Agency-DoorlockGot it free

TBH IT HELPED ME ALOT. LIKE I MEAN IT CHAT

tbh no regret installing that script. it helped me ALOT. like deadass

Jasem.JR (T.A.K.E.N by MEL)· Product Review· Agency-DoorlockGot it free

works perfect haven't had a single issue with it

ℂ𝕠𝕦𝕟𝕥𝕣𝕪𝕓𝕠𝕪𝟜𝟚𝟘𝕩· Product Review· Agency-DoorlockGot it free

Fantastic

amazing script, was looking for an alternative to ox doorlock, and this is it, simple and easy to use

Dean.GM· Product Review· Agency-DoorlockGot it free

More reviews

About our other scripts and our work in general, not about this one. They do not count towards the rating above.

Best script creator

Works everything and best ui

plijjaa· General Review

working flawless

updatet to latest 171 cfx

justmedevting· General Review

Decent script, super cool

PERFECT!!! I highly recommend it

Machine translated · original: French

PAPA NOEL· General Review

Goes well with

Agency-Housing

Standalone Scripts

Agency-Housing

Houses your players actually live in. Agency Housing is a database driven housing system you build in game instead of in a config file: place the…

US$44.99
Agency-Banking

Standalone Scripts

Agency-Banking

The bank your whole city runs on. Agency Banking turns every bank branch and ATM into a full banking app: wallet, custom cards, transfers, fixed…

US$18.99
Agency-Multicharacter

Standalone Scripts

New

Agency-Multicharacter

The first thing every player sees, made to impress. Agency Multicharacter is a cinematic character selection and creation for your server: every…

US$27.99
Agency-Spawn

Standalone Scripts

New

Agency-Spawn

Choose where your story continues. Agency Spawn is a spawn selector with a live camera that flies to every location before you pick it, then drops you in with a cinematic descent.

US$14.99

Want it tailored to your server?

We adapt Agency-Doorlock to your server: extra features, your design, integrations. Fixed price instantly, 50% deposit via PayPal.

Calculate your price