Jump to content

help?


KraZ

Recommended Posts

Why doesn't this work? No debug errors, and timer doesn't show up, Can't find the problem, someone help me please?

  
addEventHandler( "onClientResourceStart", getRootElement(), 
function() 
     addEventHandler("onClientRender", root, draw) 
     if isTimer(timer) then killTimer(timer) end 
     timer = setTimer(function() 
          removeEventHandler("onClientRender", root, draw) 
          triggerServerEvent("startActivity", getRootElement()) 
     end,500000,1) 
end) 
  
------------------------------------------------------- 
  
function draw() 
  if isTimer(timer) then 
          local timeLeft = math.ceil(getTimerDetails(timer) / 1000) 
            dxDrawText("Time Till Activity: ", 989, 175, 1391, 277, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) 
            dxDrawText(                      tostring(timeLeft), 989, 175, 1391, 277, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) 
     end 
end 
  
  
  

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