From ea915604d3ac5b23bc165bc47e3abc4c1abc5f25 Mon Sep 17 00:00:00 2001 From: Todor Ivanov Date: Sun, 30 Jul 2023 04:13:34 +0300 Subject: [PATCH] Update main.lua --- server/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/main.lua b/server/main.lua index 3c88bb78..d85a7bfc 100644 --- a/server/main.lua +++ b/server/main.lua @@ -208,7 +208,7 @@ local function isAuthorised(playerId, door, lockpick) authorised = DoesPlayerHaveItem(player, door.items) or nil end - if authorised ~= nil and door.passcode then + if not authorised and door.passcode then authorised = door.passcode == lib.callback.await('ox_doorlock:inputPassCode', playerId) end end