I know how you feel about giving up on people. Been there and done it. No matter what you do, people want nothing to do with you. You see nothing wrong with yourself, so naturally the only conclusion to draw is that it is everyone else.
You sound like me in everything you say, so I know what you're thinking/feeling. I understand, honestly. Very sad. Even on this website, a place set up so people could find support, comfort, and there is very little effort made here by anyone. I've spoken to a few people who've left now because no one ever bothered with them. It seems to be the same everywhere, whether it's on the outside world or on the internet. People want you when you're useful. If you offer them nothing, you may as well not exist as far as they're concerned.
I've already given up on people in my town. I have no faith in them anymore. So, I'm leaving my lifelong home for, hopefully, greener pastures. A new start where I can renew my faith in human beings, restore my belief in happy endings. Maybe you need a new start as well, a new set of faces. It seems those you are with currently have no interest unless it suits them. I don't want to upset or dishearten you, but these people won't change unless you change.
What do you need to change? Maybe you need to not bother with them when they come crawling. I had a girl who never bothered with me. I tried and tried and tried to be friendly with her. She wasn't arsed. I ignored her, became all nonchalant, and now she won't leave me be. Or maybe you show a darker side. Show humanity. From experience, I know that in the pursuit of friendship, we are very careful what we show. Maybe we need to stop trying to be perfect and just be ourselves. Let people see that they're dealing with a flawed individual with passion and emotions rather than a clean as a whistle automaton just set up to please them.
So, you're close to giving up. Don't blame you. I understand completely why you are. You're just one bad day away from where I am. First though, look at yourself. See if there is anything you can improve in your approach. Do things differently. If nothing changes. Give up, move on and start afresh somewhere else.
All the best.