Walid Posted May 20, 2016 Posted May 20, 2016 Try this : local screenW2,screenH2 = guiGetScreenSize() local resW2, resH2 = 1366,768 local x, y = (screenW2/resW2), (screenH2/resH2) local counter = 0 local starttick local currenttick local currFPS = 60 addEventHandler("onClientRender",root, function() if not starttick then starttick = getTickCount() end counter = counter + 1 currenttick = getTickCount() if currenttick - starttick >= 1000 then setElementData(localPlayer,"FPS",counter) currFPS = counter counter = 0 starttick = false end local time = getRealTime() local hours = time.hour local minutes = time.minute dxDrawText("Hours: "..hours..":"..minutes.."FPS: "..currFPS.." Ping: "..getPlayerPing( localPlayer ), x*1050, y*9, x*276, y*39, tocolor(255, 255, 255, 255), 1.1, "default-bold") end)
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