Model preview Textdraw - 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: Model preview Textdraw (
/showthread.php?tid=526795)
Model preview Textdraw -
friezakinght - 19.07.2014
Hi, can I make that black box around the Infernus transparent? I want to see just the model, not the black box
Respuesta: Model preview Textdraw -
Xabi - 19.07.2014
Set the color transparency to 00, for example:
pawn Code:
TextDrawColor(MyTextdraw, 0x00000000);
Re: Model preview Textdraw -
friezakinght - 19.07.2014
I got this code
pawn Code:
VSelect[playerid] = TextDrawCreate(270.00, 180.00, "_");
TextDrawFont(VSelect[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW);
TextDrawUseBox(VSelect[playerid], false);
//TextDrawBoxColor(VSelect[playerid], 0x00000000);
TextDrawTextSize(VSelect[playerid], 100.0, 100.0);
TextDrawSetPreviewRot(VSelect[playerid], -10.0, 0.0, -20.0, 1.0);
But still the box around it is black, what should i do?
Re: Model preview Textdraw -
friezakinght - 19.07.2014
Someone?
Respuesta: Model preview Textdraw -
Xabi - 19.07.2014
pawn Code:
//TextDrawBoxColor(VSelect[playerid], 0x00000000);
Uncomment that line
Re: Model preview Textdraw -
Wizzy951 - 19.07.2014
Try this
pawn Code:
VSelect[playerid] = TextDrawCreate(270.00, 180.00, "_");
TextDrawFont(VSelect[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW);
TextDrawBackgroundColor(VSelect[playerid], 0);
TextDrawUseBox(VSelect[playerid], true);
TextDrawBoxColor(VSelect[playerid], 0);
TextDrawTextSize(VSelect[playerid], 100.0, 100.0);
TextDrawSetPreviewRot(VSelect[playerid], -10.0, 0.0, -20.0, 1.0);
Re: Model preview Textdraw -
friezakinght - 19.07.2014
Still black...please help I will +rep i need to solve this..
Re: Model preview Textdraw -
Wizzy951 - 19.07.2014
Actually the code I gave you works perfectly for me, I just missed something when I gave it to you. Please retry it.
Re: Model preview Textdraw -
friezakinght - 19.07.2014
Works now, thx, +repped