Being lonely is not so bad, first try to fix the base problems like unemployment, dipression, over or underweight and things like that, find a hobby and try to enjoy the outdoors, you don't have anything to lose so try talking to random strangers or join clubs and visit public places, if you try hard enough, you can get your life together