TheSmart Posted May 10, 2015 Share Posted May 10, 2015 Hello Guys! mana ya scripts community sa download ki hai, ya fps scoreboard mai show kartha hai lakin ya kuch bhi show nahi kar raha kyun? no error in debugscript 3 Client local root = getRootElement() local player = getLocalPlayer() local counter = 0 local starttick local currenttick addEventHandler("onClientRender",root, function() if not starttick then starttick = getTickCount() end counter = counter + 1 currenttick = getTickCount() if currenttick - starttick >= 1000 then setElementData(player,"fps",counter) counter = 0 starttick = false end end ) Server addEventHandler("onResourceStart",getResourceRootElement(getThisResource()), function() call(getResourceFromName("scoreboard"),"addScoreboardColumn","FPS") end ) Link to comment
Mr.unpredictable. Posted May 10, 2015 Share Posted May 10, 2015 /debugscript 3 Ko type Karen aur koi hi Error aye tho post Kare. Link to comment
Walid Posted May 10, 2015 Share Posted May 10, 2015 koi error nahi hai addEventHandler("onResourceStart",getResourceRootElement(getThisResource()), function() call(getResourceFromName("scoreboard"),"addScoreboardColumn","fps") end ) Link to comment
TheSmart Posted May 10, 2015 Author Share Posted May 10, 2015 koi error nahi hai addEventHandler("onResourceStart",getResourceRootElement(getThisResource()), function() call(getResourceFromName("scoreboard"),"addScoreboardColumn","fps") end ) Thanks Dude 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