I use this function to draw a hudtxt on the screen:
1
2
3
4
5
6
7
2
3
4
5
6
7
visual.txt_iid = {} function hudtxt2(id,iid,txt,x,y,cs2d_clr,align) 	if not align then align = 0 end 	parse('hudtxt2 '..id..' '..iid..' '..' "'..string.char(169)..cs2d_clr..txt..'" '..x..' '..y..' '..align) 	visual.txt_iid[iid] = true end
this code to find a free iid slot:
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
function get_free_iid_slot() 	for i=1,50 do 		if not visual.txt_iid[i] then 			return i 		end 	end 	return -1 end
How can i remove a hudtxt ?
There is a function to free images ( freeimage) but not something like removehudtxt..