local LineHeight = 70 local yPos = 5 local carname={} function update() if init~=true then carcount=ac.getSim().carsCount-1 init=true end if ac.getDriverNumber == nil then ac.getDriverNumber = function(i) return i + 1 end end for carnbr=0,carcount do carpos=ac.getCar(carnbr).racePosition-1 if carpos<6 then display.text{pos=vec2(72,carpos*LineHeight+yPos), letter=vec2(72, 90), text=ac.getDriverNumber(carnbr), font="electronic_highway_sign", width = 170, spacing = 0, alignment=ui.Alignment.End, color=rgbm(1, 1, 1, 1) } end end end