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.000000, 135.000000, "_");
TextDrawFont(Textdraw0, TEXT_DRAW_FONT_MODEL_PREVIEW);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 0xFFFFFF);
TextDrawTextSize(Textdraw0, 40.0, 40.0);
TextDrawSetPreviewModel(Textdraw0, 123);
TextDrawShowForPlayer(playerid, Textdraw0);
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(Textdraw0, 0xFFFFFF00);
Will remove the black color and keep only the skin.