Custom TXD and Textdraws - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP DL Edition (
https://sampforum.blast.hk/forumdisplay.php?fid=92)
+--- Forum: SA-MP 0.3.DL (
https://sampforum.blast.hk/forumdisplay.php?fid=90)
+--- Thread: Custom TXD and Textdraws (
/showthread.php?tid=651139)
Custom TXD and Textdraws -
Libbyphay - 14.03.2018
Hi. I created a custom TXD logo and then made a textdraw with it. But it not working
HTML Code:
AddSimpleModel(-1,19379, -23000, "wallzzz.dff", "gvg.txd");
LoginScreen[0] = TextDrawCreate(248.100006, 24.515510, "");
TextDrawTextSize(LoginScreen[0], 142.100006, 129.920120);
TextDrawAlignment (LoginScreen[0], 1);
TextDrawColor (LoginScreen[0], -1);
TextDrawSetShadow (LoginScreen[0], 0);
TextDrawBackgroundColor (LoginScreen[0], 255);
TextDrawFont (LoginScreen[0], 5);
TextDrawSetProportional (LoginScreen[0], 0);
TextDrawSetPreviewModel(LoginScreen[0], -23000);
TextDrawSetPreviewRot(LoginScreen[0], 90.0, 180.0, 0.0, 0.60);
Re: Custom TXD and Textdraws -
Libbyphay - 14.03.2018
Screen 520x520
Re: Custom TXD and Textdraws -
RogerCosta - 14.03.2018
In custom images for textdraws, you need to use font id 4 (SPRITE), not id 5 (preview mode). And set textdraw string to: mdl-ID:texture_name
change -ID for, in this case -23000, and texture_name for texture name inside your .txd file (gvg.txd):
mdl-23000:NAME_OF_YOUR_TEXTURE.
Also, create your imagens in multiple of 2. Example: 64x64, 64x128, 256x512, 1024x512, 1024x1024, 2048x1024