Friends or foe or family

I don’t know what to do anymore. I am about to lose a very close friend. Because if one person I have around me and my kids. Which happens to be family. How do u make the choice between family that treats you like shit no matter what you do for them or a friend that is more then just a close friend that you have a hard time telling them anything that could start a fight or make them feel like they are taking you granted. How?