SA-MP Forums Archive
Remove the black box from a text draw - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Remove the black box from a text draw (/showthread.php?tid=640686)



Remove the black box from a text draw - mongi - 05.09.2017

Well, This code down here will show the following

PHP код:
    Textdraw0 TextDrawCreate(20.000000135.000000"_");
    
TextDrawFont(Textdraw0TEXT_DRAW_FONT_MODEL_PREVIEW);
    
TextDrawUseBox(Textdraw01);
    
TextDrawBoxColor(Textdraw00xFFFFFF);
    
TextDrawTextSize(Textdraw040.040.0);
    
TextDrawSetPreviewModel(Textdraw0123);
    
TextDrawShowForPlayer(playeridTextdraw0); 
Picture:


Is there a way to hide the black box and keep only the skin? Or make it a bit transparent?


Re: Remove the black box from a text draw - JasonRiggs - 05.09.2017

I never had that black box while using "PlayerTextDraw" idk about normal textdraw.


Re: Remove the black box from a text draw - mongi - 05.09.2017

Well, This was kinda stupid but yeah, I had to set the back-ground color.

PHP код:
TextDrawBackgroundColor(Textdraw00xFFFFFF00); 
Will remove the black color and keep only the skin.