“Seek respect, not attention.”
― Roy T. Bennett
Let people see the real you. No, you’re not perfect, but if you try to appear perfect, you’ll look fake. No one respects a person who is putting on an act.
Volunteer for the jobs nobody else wants to do.
Then do those jobs enthusiastically and well. Be the person others know they can count on whenever they need a hand. Sometimes this means taking on tasks beneath your experience or expertise but don’t let your ego get in the way.
Complaining is the fastest way to lose respect. You’ll almost always sound petty. Everybody has problems; they don’t need to hear about yours. On the other hand, if you deal with whatever life throws at you, respect will follow.