At some point in your career, being liked and respected will equally be as important as how skilled you are.
Do not, I repeat DO NOT turn down invitations to socialize with your peers and superiors. Happy hour? Be there. Chilling by the pool? Be there.
The game is the game.