Ox Doorlock
A door management resource that can be used standalone or alongside ox_core, qbx_core, and es_extended.
Installation
We strongly recommend referring to Guides for setting up Git, Node.js, and bun.
Installation > Install all resource dependencies. [step]
Installation > Download a release or build the source code. [step]
- Download the latest release.
git clone https://github.com/overextended/ox_doorlock.git
cd ox_doorlock/web
bun i
bun run build
Installation > Install optional dependencies. [step]
These resources aren't required but provide additional functionality.
Opening the UI
If you have installed and started the resource, you can use /doorlock to open the UI.
-
If the cursor is displayed but not the UI then you have not built it.
-
You may not be authorised to use the command.
- Enter
test_ace player.1 command.doorlockin the server console (replace 1 with your server id).
- Enter
Convert doors
Door configuration files written for nui_doorlock can be automatically added to your MySQL database.
- Any files with the
.luaextension placed in theox_doorlock/convertdirectory will be read on resource start. - If the directory doesn't exist, you can create it.
- Conversion cannot be guaranteed, especially if the config was not written for nui_doorlock.
Adding new native audio
A guide can be found here for adding new native audio.