Thanks for sharing this. I'm sorry your friend is in so much pain. Thank you for being there for him. (You mentioned you'd be hanging out with your friend today. Perhaps that has already occurred. If so, I hope it went well.) I'll just mention, by the way, that I've made a couple of serious attempts on my life too. So I'm not unfamiliar with what that's about.
Honestly, I don't know as there is a lot you can do here except to be there for your friend & let him know you're available & willing to talk should he want to do so. You can also encourage him to reach out for professional mental health help... perhaps by seeing a therapist, a psychologist or a psychiatrist. If there is an LGBT organization where he lives perhaps they might be able to be of assistance with this. And then, of course, if you feel your friend is in imminent danger, then you'd want to contact his parents since he lives with them.
But really, for the most part, the ball is in your friend's court so to speak. He has to want to heal & be willing to do what is necessary in order for that to happen. And there is a danger that, if he simply chooses to continue going downhill, he could drag some of you down with him. So I think it's important to realize you can only do so much; & that ultimately you are not & cannot be responsible. It's his choice. But please do take care of yourself as well.
Here are links to a few articles, from PsychCentral's archives that may be of some help:
https://psychcentral.com/blog/common...y-be-suicidal/
https://psychcentral.com/lib/what-to...e-is-suicidal/
https://psychcentral.com/lib/frequen...suicide/?all=1
https://psychcentral.com/blog/9-ways...th-depression/
https://psychcentral.com/ask-the-the...snt-want-help/
https://psychcentral.com/lib/best-th...hos-depressed/
https://psychcentral.com/lib/10-ways...hos-depressed/
My best wishes to you...