function HudMoney()
local cash = getPlayerMoney(getLocalPlayer())
money = "$"..convertNumber(cash)
dxDrawText("$"..money.."", 1455, 53, 1478, 86, tocolor(255, 255, 255, 255), 1.50, "pricedown", "left", "top", false, false, false, false, false)
end
function convertNumber ( number )
local formatted = number
while true do
formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", "%1.%2")
if ( k==0 ) then
break
end
end
return formatted
end