Doorlock
Doorlock. Lock and unlock a door from the server, find the closest door from the client, through the configured doorlock resource (Config.Doorlock).
Lock and unlock doors from the server and find the closest door from the client, through the active doorlock resource (Config.Doorlock).
Auto-detect order: ox_doorlock → qb-doorlock → rcore_doorlock → doors_creator. With none installed it resolves to none and nothing happens.
-- Client: which door is nearest?
local doorId = bridge.doorlock.getClosestDoor()
-- Server: lock it
bridge.doorlock.lockDoor(doorId)