SA-MP Forums Archive
transparent box - 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: transparent box (/showthread.php?tid=483267)



transparent box - Gafsi - 24.12.2013

hello how to do the box in textdraw transparent like this one





Re: transparent box - Basssiiie - 25.12.2013

Make sure the color you give the textdraw has its alpha channel set to something different than 0xFF. SA-MP uses colors in the hexadecimal formatted RGBA. 0x000000FF is visible black, because the first six numbers (minus the 0x) define the Red Green Blue-colors and A stands for alpha. If you change the 0xFF to another value between 0xFF and 0x00 it will become transparant.


Re: transparent box - willsuckformoney - 25.12.2013

TextDrawBoxColor(textdraw, 0x000000AA);