Was 2pac in a gang?

No, he was neutral but his boss Suge Knight was a Blood and the Death Row Record's entourage was mostly Bloodz so if 2Pac hung around gang members they were Bloodz.