Merhabalar benzin çok hızlı gidiyor yardım edebilirmisiniz.
-- Get vehicle speed in MPH and draw speedometer
local speed = currSpeed*3.6
local speedColor = (speed >= speedLimit) and speedColorOver or speedColorUnder
drawTxt(("%.3d"):format(math.ceil(speed)), 2, speedColor, 0.7, screenPosX + 0.002, screenPosY + 0.005)
drawTxt("Kmh", 2, speedColorText, 0.4, screenPosX + 0.030, screenPosY + 0.018)
-- Draw fuel gauge
local fuelColor = (currentFuel >= fuelWarnLimit) and fuelColorOver or fuelColorUnder
drawTxt(("%.3d"):format(math.ceil(currentFuel)), 2, fuelColor, 0.7, screenPosX + 0.057, screenPosY + 0.005)
drawTxt("Benzin", 2, fuelColorText, 0.4, screenPosX + 0.085, screenPosY + 0.018)
Linkleri,görmek için
Giriş yap veya üye ol.
Linkleri,görmek için
Giriş yap veya üye ol.
-- Get vehicle speed in MPH and draw speedometer
local speed = currSpeed*3.6
local speedColor = (speed >= speedLimit) and speedColorOver or speedColorUnder
drawTxt(("%.3d"):format(math.ceil(speed)), 2, speedColor, 0.7, screenPosX + 0.002, screenPosY + 0.005)
drawTxt("Kmh", 2, speedColorText, 0.4, screenPosX + 0.030, screenPosY + 0.018)
-- Draw fuel gauge
local fuelColor = (currentFuel >= fuelWarnLimit) and fuelColorOver or fuelColorUnder
drawTxt(("%.3d"):format(math.ceil(currentFuel)), 2, fuelColor, 0.7, screenPosX + 0.057, screenPosY + 0.005)
drawTxt("Benzin", 2, fuelColorText, 0.4, screenPosX + 0.085, screenPosY + 0.018)