Forum




hudtext width
6 replies





@
carb0n: There's no function for that. You can write new one, but you have to make sure that nobody uses custom fonts.

i wrote my own code and used in my lua (


1
hut_width = math.floor(string.len(player_msg[i])*6)
but sometimes its not accurate


save every character size in a table like a = 4 and i = 1 etc etc
And then wake up and realize not everyone uses the same font.



save every character size in a table like a = 4 and i = 1 etc etc
And then wake up and realize not everyone uses the same font.
tell they to use default font or ban they



