KraZ Posted November 16, 2012 Share Posted November 16, 2012 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
TAPL Posted November 16, 2012 Share Posted November 16, 2012 i can see the timer showing on the Money hud. Link to comment
denny199 Posted November 16, 2012 Share Posted November 16, 2012 It's working for me. Show me your'e meta.xml. btw, the timer details are in the text itself. Link to comment
KraZ Posted November 16, 2012 Author Share Posted November 16, 2012 OMG, My awsome programming skills failed to notice the META LOL! Link to comment
TwiX! Posted November 16, 2012 Share Posted November 16, 2012 offtop My awsome programming skills failed the META 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