Textdraw
#1

Greedings,i made hunger thirst and wc bar,and i want to make number textdraw into the bar,but the textdraw i bugged only first is normal.Here is screenshot: https://ctrlv.cz/nQp9 ..
Here is code textdraws:
PHP код:
Potreby[0] = TextDrawCreate(566.333190125.703697"100");
    
TextDrawLetterSize(Potreby[0], 0.2863331.425778);
    
TextDrawAlignment(Potreby[0], 1);
    
TextDrawColor(Potreby[0], -1);
    
TextDrawSetShadow(Potreby[0], 0);
    
TextDrawSetOutline(Potreby[0], 0);
    
TextDrawBackgroundColor(Potreby[0], 255);
    
TextDrawFont(Potreby[0], 1);
    
TextDrawSetProportional(Potreby[0], 1);
    
TextDrawSetShadow(Potreby[0], 0);
    
Potreby[1] = TextDrawCreate(565.333251141.881439"100");
    
TextDrawLetterSize(Potreby[1], 0.2863331.425778);
    
TextDrawAlignment(Potreby[1], 1);
    
TextDrawColor(Potreby[1], -1);
    
TextDrawSetShadow(Potreby[1], 0);
    
TextDrawSetOutline(Potreby[1], 0);
    
TextDrawBackgroundColor(Potreby[1], 255);
    
TextDrawFont(Potreby[1], 1);
    
TextDrawSetProportional(Potreby[1], 1);
    
TextDrawSetShadow(Potreby[1], 0);
    
Potreby[2] = TextDrawCreate(564.666625159.718444"100");
    
TextDrawLetterSize(Potreby[2], 0.2863331.425778);
    
TextDrawAlignment(Potreby[2], 1);
    
TextDrawColor(Potreby[2], -1);
    
TextDrawSetShadow(Potreby[2], 0);
    
TextDrawSetOutline(Potreby[2], 0);
    
TextDrawBackgroundColor(Potreby[2], 255);
    
TextDrawFont(Potreby[2], 1);
    
TextDrawSetProportional(Potreby[2], 1);
    
TextDrawSetShadow(Potreby[2], 0); 
Reply
#2

Textdraws are displayed in the order they are created. Re-order the textdraws so the black bars are created first, then the the colored bars and finally the text. Also try to use only whole numbers for positions for the best scaling across different resolutions.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)