local money = getPlayerMoney(localP)if lastmoney~=money then moneydiff=money-lastmoney moneychangetime=ticks moneychangestr=(moneydiff > 0 and \"+\" or \"\")..tostring(moneydiff)..\" Ft\" moneychangecol=moneydiff>0 and moneyGreenCol or moneyRedCol moneydiffchangetime=ticks lastmoney=moneyend--if ticks-moneychangetime<15000 then local moneystr=tostring(money)..\" Ft\" local moneycol=money>=0 and moneyGreenCol or moneyRedCol local moneyw=dxGetTextWidth(moneystr,1.2,\"pricedown\") dxDrawTextBordered(moneystr,math.min(221-moneyw,191),currBufferOff,256,currBufferOff+32,moneycol,2,1.2,\"pricedown\",\"center\",\"top\",false,false,false) if ticks-moneydiffchangetime<15000 then currBufferOff=currBufferOff+30 local moneychangew=dxGetTextWidth(moneychangestr,1,\"pricedown\") dxDrawTextBordered(moneychangestr,math.min(221-moneychangew,191),currBufferOff,256,currBufferOff+32,moneychangecol,2,1,\"pricedown\",\"center\",\"top\",false,false,false) end currBufferOff=currBufferOff+30--end[/quote]
local money = tonumber(getElementData(localPlayer, \"money\")) or 0