createClientHudTextElement( hud_text_name, x, y, xAlign, yAlign, horzAlign, vertAlign, foreground, sort, alpha, color_r, color_g, color_b, size, text )
{
if( !isDefined( self.txt_hud ) ) self.txt_hud = [];

self deleteHudTextElementbyName( hud_text_name );

count = self.txt_hud.size;

self.txt_hud[count] = newClientHudElem( self );
self.txt_hud[count].name = hud_text_name;
self.txt_hud[count].x = x;
self.txt_hud[count].y = y;
self.txt_hud[count].alignX = xAlign;
self.txt_hud[count].alignY = yAlign;
self.txt_hud[count].horzAlign = horzAlign;
self.txt_hud[count].vertAlign = vertAlign;
self.txt_hud[count].foreground = foreground;
self.txt_hud[count].sort = sort;
self.txt_hud[count].color = ( color_r, color_g, color_b );
self.txt_hud[count].hideWhenInMenu = true;
self.txt_hud[count].alpha = alpha;
self.txt_hud[count].fontScale = size;
self.txt_hud[count].font = "default";
self.txt_hud[count] setText( text );
}