is there a way to get the team / team color of a player clientside ?
team.GetColor(ply:Team()) doesn't work for me ( attempt to call method 'Team' (a nil value) )
Post the whole code. Some line of code floating in the middle of nowhere doesn't help us at all. Where did you put this?
oh omfg ... i need to think before posting xP ply was a string instead of an entity. sry for bothering XP
Have you defined ply as anything? It is not a magic variable and is most probably equal to nil. Use LocalPlayer() instead of ply.
Yes, this would work much better for you if this is on clientside:
[code]
LocalPlayer():Team()
[/code]
[lua]team.GetColor(LocalPlayer():Team())[/lua]
Sorry, you need to Log In to post a reply to this thread.