I needed this to make custom team menus. I blocked the VGUI and text menu and created my own text menu.
Here is a problem though. When someone using VGUI menus tries to select a team, it doesn't set them on a team. If they are using the text menu style, then it works fine. The funny thing is that I made it so when a team was selected it would also print a message. The message prints, but the team doesn't change.
I'm testing this on a linux server, do you think the offset would have something to do with it?