Pattern

Recreate a pattern by connecting grid points

-- Pattern Lock
RegisterCommand('testpattern', function()
    local correctPattern = {1,4,7,8,9} -- Diagonal pattern from top-left to bottom-right
    exports['moon-ui']:OpenPatternLock(correctPattern, function(success)
        if success then
            print('Pattern correct! Access granted.')
            -- Add your logic here for successful pattern entry
        else
            print('Pattern incorrect! Access denied.')
            -- Add your logic here for failed pattern entry
        end
    end)
end)

Last updated