Different colors on different clients. (Lyra perspective)

How can the server set these colors?
Every player should see their enemies red and their allies blue. Isn’t it happening locally? (because each player has different enemies and allies)