It's understandable that the way other people react to you effects your self-esteem, but what other people think doesn't have to determine how you feel about yourself. Some truly awful people have had lots of friends and admirers, while some really wonderful people have had none.
Beyond that, you don't have to do anything or be anything to be worthy of self-esteem. You have inherent worth as a human being.
I haven't read this particular book, but it might be helpful:
Overcoming Low Self-Esteem, 2nd Edition: A self-help guide using cognitive behavioural techniques
Melanie Fennell
There might be other books that are just as good or better, but that's the only one I know of on the subject of self-esteem. This book is from the UK's reading-well book list, the books there have been vetted by at least one professional.
Sending hugs if you would like hugs