Jump to content

Solved!


Black2

Recommended Posts

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) 
        

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