DarkRP Hud Help

Ok, so I am working on a Hud for DarkRP (Funny right?) And I am trying to make it so that if a players job/team is a word that is more than (7) letters, the text will be smaller. Also, when a player has a lot of money, the text for the money will be smaller so it wont overlap. I tried doing a if statement, but that did not work, and I was questioning if what I am asking is possible. Thanks in ahead.

** Jobs Code **
[lua] --Jobs–

surface.SetFont(“TL”)
widthJ,heightJ = surface.GetTextSize("Job: "…Job)
local col = team.GetColor(LocalPlayer():Team())
if (col.r < 75) and (col.g < 75) and (col.b < 75) then
col = Color(255, 255, 255, 255) end

surface.SetDrawColor(255,255,255,50)
surface.SetDrawColor(0,0,0,255)
surface.SetDrawColor(0,0,0,50)

surface.SetTextColor(col)
surface.SetTextPos(290, 7)
surface.DrawText("Job: "…Job)

–Jobs-- [/lua]

** Money Amount **

[lua] --Money–

surface.SetFont(“TL”)
widthW,heightW = surface.GetTextSize(“Wallet:”…Wallet…"$")

surface.SetDrawColor(255,255,255,50)
surface.SetDrawColor(0,0,0,255)
surface.SetDrawColor(0,0,0,50)

surface.SetTextColor(35, 170, 0, 255)
surface.SetTextPos(125, 7)
surface.DrawText(“Wallet:”…Wallet…"$")

–Money-- [/lua]

Thank you to anyone in advance.

Got the code you used to do that?

I’d think it’d be somthing like this:
[lua]
if string.len(Wallet) > 99999 then
– Whatever to set the font smaller.
[/lua]