I think you should seek professional help to help diagnose how bad your friend's gambling addiction is, if any. Check with his family and see how he manages his money, and try to find alternatives to limit his access to money for a while to make sure he doesn't fall further into debt, while at the same time looking for a decent job that can take most of his time from gambling. If worst comes to worst, take away his phone/PC access to make sure he doesn't do online gambling. At the end of the day, his will to quit gambling is probably what matters most. A professional should be able to at least offer suggestions to make a better environment, while at the same time encouraging him to stop taking loans to gamble money. You should also stop being a safety net for him so he won't come to you whenever he gets in trouble.