Matevsz Posted June 16, 2016 Share Posted June 16, 2016 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 ) Link to comment
Captain Cody Posted June 16, 2016 Share Posted June 16, 2016 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. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now