Okay so this may be a noobish question and I apologize for that in advance. Anyway I am wondering how I can restrict a HUD to only draw on certain teams. My guess is that it is a combination of HUDShouldDraw, and OnPlayerChangedTeam but I can not figure it out exactly. I tried having a boolean that would change to true when someone switched to the desired job then sending that boolean to the client through the network library. However that did not work and it made the HUD not show up on any team. Thanks for any help!
Just check the player’s team before you draw any HUD. No need to wait for them to change teams.
Okay so how would I go about doing that inside the HUDpaint hook?
Edit: Nevermind I am an idiot I figured it out. I use this correct http://wiki.garrysmod.com/page/Global/LocalPlayer