Jump to content

mileage car


Matevsz

Recommended Posts

Posted

Hello, help someone to make mileage to this dxDrawText?

  
addEventHandler("onClientRender", root, 
    function() 
        dxDrawRectangle(820, 951, 15, 20, tocolor(255, 255, 255, 255), true) 
        dxDrawRectangle(839, 951, 15, 20, tocolor(255, 255, 255, 255), true) 
        dxDrawRectangle(858, 951, 15, 20, tocolor(255, 255, 255, 255), true) 
        dxDrawRectangle(877, 951, 15, 20, tocolor(255, 255, 255, 255), true) 
        dxDrawRectangle(896, 951, 15, 20, tocolor(255, 255, 255, 255), true) 
        dxDrawRectangle(915, 951, 15, 20, tocolor(255, 255, 255, 255), true) 
        dxDrawText("0", 822, 947, 839, 971, tocolor(0, 0, 0, 255), 1.90, "default-bold", "left", "top", false, false, true, false, false) 
        dxDrawText("1", 841, 947, 858, 971, tocolor(0, 0, 0, 255), 1.90, "default-bold", "left", "top", false, false, true, false, false) 
        dxDrawText("2", 860, 947, 877, 971, tocolor(0, 0, 0, 255), 1.90, "default-bold", "left", "top", false, false, true, false, false) 
        dxDrawText("3", 879, 947, 896, 971, tocolor(0, 0, 0, 255), 1.90, "default-bold", "left", "top", false, false, true, false, false) 
        dxDrawText("4", 898, 947, 915, 971, tocolor(0, 0, 0, 255), 1.90, "default-bold", "left", "top", false, false, true, false, false) 
        dxDrawText("5", 915, 947, 932, 971, tocolor(0, 0, 0, 255), 1.90, "default-bold", "left", "top", false, false, true, false, false) 
    end 
) 
  

2eat5i8.jpg

Posted

Well basically first you have to record your mileage, then you have to split it into 6 units. And so on. Probably could use setElementData. And use onClientRender, and check speed and what not.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...