I wish you could do inpatient, but I know the feeling...needing meds or doctor's visits, or treatment and not being able to afford it. It sucks. I hope you can take care of yourself and find a new job.
If you've alienated your friends, perhaps they aren't all that good of friends. A true friend wouldn't give up on you. (((Hugs)))