if ClosestDoor and ClosestDoor.distance < ClosestDoor.maxDistance then
DisableControlAction(0, 86, true)
if Config.DrawTextUI and not ClosestDoor.hideUi and ClosestDoor.state ~= showUI then
lib.showTextUI(ClosestDoor.state == 0 and lockDoor or unlockDoor)
showUI = ClosestDoor.state
end
local interact = IsDisabledControlJustReleased(0, 38)
local horn = IsDisabledControlJustReleased(0, 86)
if not PickingLock and (interact or horn) then
useClosestDoor()
end
starting at line 322 at if ClosestDoor and ClosestDoor.distance < ClosestDoor.maxDistance then in client/main.lua