LIMITED SUPPORT WILL BE PROVIDED - IF YOU NOTICE ANY ISSUES PLEASE REPORT THEM
Edited Version of esx_doorlock, added QBCore support and improved functionality.
Requires QBCore Framework
-
Easily add and configure new doors! Example video
Use the/newdoor
command to automatically create a new entry on the DoorList. -
No more
SetEntityHeading
andFreezeEntityPosition
natives.
Doors in range are assigned a doorHash, used withAddDoorToSystem
.
Doors are assigned a state depending on if they are unlocked, locked, or locking withDoorSystemSetDoorState
. -
Garage doors and gates can be locked and will properly move into the correct position.
If a player comes into range of an unlocked automatic door like this, it will open appropriately. -
The state of the door is drawn into the world using NUI, meaning full customisation of the appearance and content.
By default, icons from font-awesome are being displayed; but there is support for images with this method.
Customisable audio playback! Modify the lock and unlock sound on a door-by-door basic. -
Improved performance by utilising threads and functions where appropriate.
Instead of updating the door list every X seconds, your position will be compared to where the last update occured and update when appropriate.
The state of doors is only checked while in range, and the number of checks per loop depends on the state of the door. -
Persistent door states! Door states are saved when the resource stops, then loaded back up on start.
States.json will auto-generate if the file does not exist. -
Config for both Community MRPD and gabz_MRPD
Just choose which config file to use and delete the one you are not using. -
Set door access permissions
Set multiple jobs or gangs to use a door, with the minimum required gradeauthorizedJobs = {['police']=0, ['vagos']=2}
Restrict Doors to Specific Civilian Identifiers. Enter the Civilian ID in the Permission table e.g.authorizedJobs = {['CST24272']=0, ['police']=0 }
Allow the door to be lockpicked withlockpick = true
qbcore-doorlocknui Convered from ESX to QBCore - Find Original Here
This is a door lock script for QBCore, which is used to lock certain doors that shouldn't be accessable by normal citizens.
This script was edited by Steff#1940 and fixed by Krislyz#0001