What is the meaning of [Be a friend to thyself, and others will befriend thee]

“Mens friends commonly bear a proportion to their circumstances iu the world. And therefore if we be such friends to as to make our circumstances easy and plentiful we will not want friends.”, James Kelly (1818). “B”. A Complete Collection of Scottish Proverbs Explained and Made Intelligible to the English Reader. and quotes (1995)