I'd say a whole lot of it, but probably not how you think. Most of the things they did that saved my life were.. kicking me out, convincing the judges to raise my bail, not giving me money, etc. When I was ready to clean up my life, they were also there to help with stuff like helping me find treatment, spotting me money for lawyer bills as long as I was on the right track, etc.
When they had enough of me fucking up, they literally brought me to a hotel, paid for 3 nights, and left me there with a suitcase full of my clothes and some food along with a little bit of cash. I really had no idea how hard that was for them until later, but it was really the right thing to do and I wouldn't have ended up changing anything if they hadn't done it.
So if you have kids what will you tell them about drugs? I struggle with this one.