Custom TexdDraws are not working - 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 TexdDraws are not working (
/showthread.php?tid=653902)
Custom TexdDraws are not working -
JR_Junior - 16.05.2018
Hello.
I'm trying to create textdraws using images from a .txd file:
PHP код:
AddSimpleModel(-1, 1246, -1002, "Images.dff", "Images.txd");
new PlayerText:Logo = CreatePlayerTextDraw(playerid, 145.333358, 29.311109, "mdl-1002:logo");
- The .dff and .txd files belong to any object.
- I open the .txd file with TXDWorkshop and add the "logo.png" image (512x256) and save the file, along with the original textures that are already inside the file.
- I save and add on the server, but after downloading the samp says that it was not possible to check the .txd file and delete it.
- If I use the original .txd file without adding the logo.png image, at the time of creating the textdraw using an original file texture everything works fine, but if I delete the textures and add only the logo.png image in time to create the texdraw it does not appear.
My first question is: Do I need to create a specific object, with original .dff and .txd file for each image I want to add?
@EDIT
Second: Transparent png is not allowed, like an animated gif or a simple logo with transparent parts?
Re: Custom TexdDraws are not working -
CharlieHalltheJustinThom - 16.05.2018
new Text:Logo;
AddSimpleModel(-1, 1246, -1002, "Images.dff", "Images.txd");
Logo = CreatePlayerTextDraw(playerid, 145.333358, 29.311109, "mdl-1002:logo");
Re: Custom TexdDraws are not working -
DeepCode - 16.05.2018
https://sampforum.blast.hk/showthread.php?tid=651543 here it is buddy
Re: Custom TexdDraws are not working -
JR_Junior - 16.05.2018
Quote:
Originally Posted by DeepCode
|
Thank you! Worked fine!
Rep+