I've actually watched a video a long time ago (maybe on Youtube) about this specific topic. They spoke of a man in a village who was a farmer in Africa. One day, he was in an accident and he lost his legs I think. Subsequently, he couldn't farm anymore and he became depressed and suicidal. Normally, in the Western society, they would of "fixed him" by giving him some pills and a psychiatrist. Instead, the whole village came together to help this man. I don't remember exactly how, but they changed the environment around him. He was given a purpose and was able to do something else. Villagers would come in and speak to this man to keep him company. He became happy and wasn't suicidal anymore.
In some ways, my answer is similar to @Zappfe lover. Having all those things is a good foundation so a person has their basic necessities covered. However, even with those things, they don't cover things like having a purpose in life, having company, and being appreciated. I think this is why its so hard to cure suicidal people. Psychiatrist can't prescribe for people to care about you. They can't order people to become your friends and give you support. "Curing" someone involves solving someone's whole external life outside of an office. There is just no way a government can fix that. It involves having a completely different society that we have today. This is why I believe some people who have more than average lifestyles, like a wife, kids, job, money, house, and friends have suicidal thoughts. No one can be "given" a purpose in life.
That's why I think we can't ultimately help suicidal people. We can try, but its ultimately up to the person on how they feel their quality of life is.