Please ignore the stupid answers above, some people's self inflated egos seem to get in the way of their ability not to pre judge.
You need to get legal advice- the duty solicitor will be able to advise you better should you not be able to afford one. If the criminal damage is of a low value and the resisting arrest did not involve violence towards the police you might be lucky, but you need to sort out whatever it is that's causing you to behave the way you do, before you mess up enough to end up inside.