In order to qualify for British Citizenship, you will need to demonstrate that you have a good character. When assessing this, the Home Office will take into account whether you have any criminal convictions. Your criminal record will therefore be crucial to this assessment.
If you have convictions on your record, you should seek legal advice to see whether you are eligible to apply for citizenship, and in relation to the timing of the application.