• Announcement:
    In order to download VIP files, you need to UPGRADE your account.

Minimap SHOW FPS

VIP
Developer
Member
Feb
Threads
28
104
369
63
HubMoney
514
hello, today I will show you how to add FPS under the mini map, it will work even if you add the codes completely​



Code:
uiminimap.py OPEN

FIND

def __Initialize(self):

ADD AFTER

self.FPSInfo = 0

FIND

self.serverInfo = self.GetChild("ServerInfo")

ADD AFTER

self.FPSInfo = self.GetChild("FPSInfo")

FIND

self.positionInfo.SetText("(%.0f, %.0f)" % (x/100, y/100))

ADD AFTER

        nRenderFPS=app.GetRenderFPS()
        fps="%3d"%(nRenderFPS)
        self.FPSInfo.SetText(uiScriptLocale.FPS_PERFORMANS+ " " + str(fps))

uiscript/minimap.py OPEN and FIND

            {
                    "name" : "PositionInfo",
                    "type" : "text",
                    
                    "text_horizontal_align" : "center",

                    "outline" : 1,

                    "x" : 70,
                    "y" : 200,

                    "text" : "",
            },

ADD AFTER

            {
                    "name" : "FPSInfo",
                    "type" : "text",

                    "text_horizontal_align" : "center",   

                    "outline" : 1,

                    "x" : 70,
                    "y" : 176,

                    "text" : "",
            },

locale_interface.txt ADD

FPS_PERFORMANS    FPS:
 
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock