Jump to content

Size


ZeyadGTX

Recommended Posts

Hello , i use this to Add FPS to my Hud it works perfectly but the problem its small , is there any thing to make it bigger size ??

  
dxDrawText("FPS: "..getElementData(getLocalPlayer(), "FPS"), (8/1024)*sWidth, (740/768)*sHeight, (130/1024)*sWidth, (130/768)*sHeight, tocolor (255, 255, 255, 255), (0.4/1366)*sWidth,(0.4/768)*sHeight,"bankgothic","left","top",false,false,false,false) 

Link to comment

You have an argument in dxDrawText after the color argument called "scale" that has the default value 1, it's not provided in your script but you'll find it on the wiki, if you set that to 2 for instance your text will be scaled to it's double size, the argument are of the type float so you can also use values like 0.7 or 1.4 as well, With that font I would recommend you to set the scale to 0.7

bool dxDrawText ( string text, float left, float top [, float right=left, float bottom=top, int color=white,  
                  float scale=1, mixed font="default", string alignX="left", string alignY="top", 
                  bool clip=false, bool wordBreak=false, bool postGUI=false, 
                  bool colorCoded=false, bool subPixelPositioning=false,  
                  float fRotation=0, float fRotationCenterX=0, float fRotationCenterY=0 ] ) 

Link to comment

Can you edit it ?

  
dxDrawText("FPS: "..getElementData(getLocalPlayer(), "FPS"), (8/1024)*sWidth, (740/768)*sHeight, (130/1024)*sWidth, (130/768)*sHeight, tocolor (255, 255, 255, 255), (0.4/1366)*sWidth,(0.4/768)*sHeight,"bankgothic","left","top",false,false,false,false) 

Link to comment
dxDrawText("FPS: "..getElementData(getLocalPlayer(), "FPS"), (8/1024)*sWidth, (740/768)*sHeight, (130/1024)*sWidth, (130/768)*sHeight, tocolor (255, 255, 255, 255), (0.4/1366)*sWidth,(0.7/768)*sHeight,"bankgothic","left","top",false,false,false,false) 

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