3B00DG4MER Posted March 31, 2014 Share Posted March 31, 2014 hello,today I've made speedometer But there is one Problem,The Health of vehicle has number too long,how do i let it small like 500 health = getElementHealth(getPedOccupiedVehicle(localPlayer)) dxDrawText(""..tonumber(health).."",x*0.0125,y*0.85,x*0.5475,y*0.606666667,tocolor(0,255,0,255),1.3,Digital,"right","top",false,false,false) Link to comment
WhoAmI Posted March 31, 2014 Share Posted March 31, 2014 math.floor Example local number = 500.05 print ( math.floor ( number ) ) Output: 500. Link to comment
3B00DG4MER Posted March 31, 2014 Author Share Posted March 31, 2014 math.floor Example local number = 500.05 print ( math.floor ( number ) ) Output: 500. Thanks !! 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