Know the person’s weakness and help him encourage to overcome it. Teach him to stand on his own foot and not to rely on other person, and by helping him land on a stable job or a reliable side hustle or investment, you are just giving him opportunity to grow and support himself, without feeding him everything he needs. That way, you did invest yourself onto him but in a productive way.
That's a reasonable solution, I once saw a video that gave me motivation, where there was a beggar who was sitting hoping that everyone who passed by would give him money, but there were two people who gave him a box of drinks and listed the price of one bottle of drink to sell. I think this is indeed a motivation, where we have to be able to try to make money or to change the situation for the better, not just by sitting and hoping for a miracle to happen, if it continues like that it will be difficult for us to change the situation.
by giving them jobs that can actually make money is the solution to being able to change their own lives. rather than making their lives depend on other people, it will not make them progress or change for the better. because I think people whose lives depend on other people are people who don't want to try to change their lives for the better, because they feel that their lives are comfortable with the people who give them comfort in life.