Fory Posted April 1, 2021 Posted April 1, 2021 Hello everyone! I would ask help, how id would be able to make it with what how drawdxtext announces it-in that: Start of competition 8:55 minutes left , unfortunately the drawdxtext i never could together to make friends but i would love now. thank you...
Moderators IIYAMA Posted April 2, 2021 Moderators Posted April 2, 2021 17 hours ago, Fory said: unfortunately the drawdxtext i never could together to make friends but i would love now. local endTime = 0 function drawTime () local timeNow = getTickCount() if timeNow < endTime then local remainingTime = endTime - timeNow dxDrawText("remainingTime:" .. remainingTime, 300, 300) else -- (re)set endTime = timeNow + 60000 end end addEventHandler("onClientRender", root, drawTime) A small example. You have to make the code iterations yourself. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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