loneliness, lack of meaning, and the despair that arises from it are one of those things that's really difficult to shake off.
for many, even the best practical advice doesn't come close to penetrating the real problem beneath because people need genuine connection and closeness in their lives, and without it, everything feels impossible to do.
it's a shitty cycle:
loneliness creates depression and demotivation
demotivation over time leads to difficulties in life later (unstable income)
unstable life makes finding connections, especially with women very difficult (i'm aware of the double standard here, that struggling women can find connections but struggling men basically can't)
...and that feeling of "it's impossible to find love so what's the point" then just make the demotivation even worse which feeds into the cycle all over again.
OP, i hate saying this but even if things might not be great in your love life, put that aside for now and really focus on yourself. get healthy, find ways to learn a skill and find good work so that you can make life easier on yourself. and distance yourself from your drug addicted friends. do your best to get them help, but they could be enabling your issues too.