Disclaimer: The materials provided below are informational and should not be relied upon as legal advice.
Are you certain the unlawful detainer lawsuit was dismissed? If so, it should not adversely affect your credit. Typically, lawsuit affects your credit if it results in a judgment entered against you. You mention you were served with a 60-day notice after that. It seems like you have not fully resolved your issues with your landlord. You should consult your own attorney to protect your legal rights.