๐ 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
- ๐ Putย Agency-Doorlock into your resources folder.
- ๐ Addย ensure Agency-Doorlock afterย ensure oxmysql in your server.cfg.
- โถ๏ธ Start the server. The database table is created automatically.
- ๐๏ธ 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