I’ve read lots of posts recently where OPs have difficulty making and keeping friends and I think the responses included good tips for people in that situation.
AIBU to suggest that those who are socially successful provide some further advice here - what do they do that others don’t do, that leads them to have a wide and active social group?
From my perspective, it’s being easy going without being a pushover and not expecting too much, particularly early in the friendship. Think about the kind of person you want to be friends with and ask yourself why someone would want to be friends with you.