ZeyadGTX Posted June 24, 2014 Posted June 24, 2014 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)
Mr_Moose Posted June 24, 2014 Posted June 24, 2014 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 ] )
ZeyadGTX Posted June 24, 2014 Author Posted June 24, 2014 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)
Castillo Posted June 24, 2014 Posted June 24, 2014 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)
Castillo Posted June 24, 2014 Posted June 24, 2014 What do you mean by "crashed"? I only changed 0.4 scale to 0.7. Check the debugscript ( /debugscript 3 in-game ) and see if there are errors.
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