Callum1243 Posted July 11, 2016 Share Posted July 11, 2016 I want to add and FPS counter to this: setTimer(function() if getElementData(getLocalPlayer(), "logedin") then guiSetText(statsLabel["zombieskilled"], "Zombies killed: "..getElementData(getLocalPlayer(), getElementData(statsLabel["zombieskilled"], "identifikation"))); guiSetText(statsLabel["headshots"], "Headshots: "..getElementData(getLocalPlayer(), getElementData(statsLabel["headshots"], "identifikation"))); guiSetText(statsLabel["banditskilled"], "Bandits killed: "..getElementData(getLocalPlayer(), getElementData(statsLabel["banditskilled"], "identifikation"))); guiSetText(statsLabel["murders"], "Murders: "..getElementData(getLocalPlayer(), getElementData(statsLabel["murders"], "identifikation"))); guiSetText(statsLabel["blood"], "Blood: "..getElementData(getLocalPlayer(), getElementData(statsLabel["blood"], "identifikation"))); guiSetText(statsLabel["zombies"], "Zombies (Alive/Total): "..(getElementData(getRootElement(), "zombiesalive") or 0).."/"..(getElementData(getRootElement(), "zombiestotal") or 0)); guiSetText(statsLabel["temperature"], "Temperature: "..math.round(getElementData(getLocalPlayer(), getElementData(statsLabel["temperature"], "identifikation")), 2).."°C"); guiSetText(statsLabel["humanity"], "Humanity: "..math.round(getElementData(getLocalPlayer(), getElementData(statsLabel["humanity"], "identifikation")), 2)); guiSetText(statsLabel["name"], "Name: "..getPlayerName(getLocalPlayer())); end end, 2000, 0); FPS Above Zombies killed, how can I do this? Link to comment
G-Stefan Posted July 11, 2016 Share Posted July 11, 2016 First, you have to Get the plauer fps using getCurrentFPS() Then create a function to draw a dx text or to create a label Finally add a event handler onClientRender to your function WIKI IS YOUR FRIEND! https://wiki.multitheftauto.com/wiki/GetCurrentFPS Please when posting a lua code use [lua] tag 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