Personally (and there is a lot of "personallys" or "IME" in this forum because everyone is different), it took a couple different things to happen for me to finally give up living as a drug addict
one of those things was my family no longer was willing to support me in any fashion, regardless of what I could do for them while I was using. Not just that, but they didnt really want anything to do with me either. There was almost like a standoff for a little bit where I really didn't communicate with anyone outside of my grandparents (who were both 80+ years old), and my aunt (who I used drugs with). And I was ok with that because I was getting high
the other thing that helped me more than rehab was going to jail. Obviously, there is no good reason to go to jail but it will definitely teach you to appreciate things you didn't really think were important before. And I wasn't even in jail for that long, only a little less than 2 months. But it was long enough for me. I didn't get any commissary in there either, because nobody was willing to put money on my books because they assumed I would just buy drugs with it off other inmates (which isnt really how you would do it regardless but w/e). And the county I was in puts you in quarantine for 15-21 days. Its a 16 person cell about the size of a public bus albeit a little wider, with 8 bunk beds. And it's always full. There's no yard, nobody had cards, this guy made a chess board out of bars of soap, one guy was detoxing off subs for a solid 4 days just throwing up in our only trash can, you get 1 hour of time to watch tv in the day room after lunch and 1 hour after dinner, there were only 4 phones between 4 huts of 16 people so 64 people trying to use 4 phones and 2 of them were broken for most of my time there (granted, I didn't have to make any calls), and there were no books to read. You literally woke up around 530 to eat breakfast, slept until lunch around 1130, tried to sleep until dinner around 6, and then got locked down after the hr day room.
Sorry I just realized I've just been rambling about jail for way too long. They always say that you need to get comfortable with yourself in order to be ready to stop using. Well the 3 weeks I spent on Q pod made me get real comfortable with myself I will tell you that.
It really comes down to what do you want to achieve with your time on earth? If I could find a way to use heroin without completely fucking my life up, I would go back to using in a minute, to be completely honest.
But it's just not possible, and I feel like life isnt as melancholy as I once thought it was when I was using.
Life didn't suck, I was the one who sucked, and I tried to drag everything down to my shitty emotional state as some way of justifying why continuing to use drugs wasn't a complete waste of time.