On HUD Show team name not number

Hey, I just learned the basic hud of the wiki, and I changed Suit to team name, so instead of armor and the bar, it shows team and team name
except the only problem is it’s displaying Team: 1
here is the shared
team.SetUp( 1, “Red Team”, Color( 255, 0, 0, 255 ) )
team.SetUp( 2, “Blue Team”, Color( 0, 0, 255 , 225 ) )
team.SetSpawnPoint(2, “info_player_terrorist”)
team.SetSpawnPoint(1, " info_player_counterterrorist")
team.SetModel(1, “models/player/halo3/spartan_red.mdl”)
team.SetModel(2, “models/player/halo3/spartan_blue.mdl”)

I want it to show Red Team, or Blue Ream, instead of 1, or 2.
I’m using client:Team for the HUD and that’s how it is getting 1 or 2 as team

[lua]team.GetName(team number)[/lua]

Will return the team name.

local text = string.format( “Team: %i”, client:team.GetName() );

Breaks the hud :confused:

Use %s. %i is for numbers only.

local text = "Team: " … team.GetName( client:Team() )