Jump to content

dxDrawText getTickCount


Fory

Recommended Posts

 

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...

Link to comment
  • Moderators
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.

Link to comment

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...