If you want to attract happy people, be happy.
If you want respect, respect yourself, and people will respect you.
If you want people to treat you well, treat yourself well.
If you want loyalty, caring, and love, be loyal caring and loving.
Does it work ALL the time? No.
But it works most of the time, and the alternative doesn’t work at all.