Custom TexdDraws are not working
#1

Hello.

I'm trying to create textdraws using images from a .txd file:
PHP код:
AddSimpleModel(-11246, -1002"Images.dff""Images.txd");
new 
PlayerText:Logo CreatePlayerTextDraw(playerid145.33335829.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?
Reply
#2

new Text:Logo;

AddSimpleModel(-1, 1246, -1002, "Images.dff", "Images.txd");

Logo = CreatePlayerTextDraw(playerid, 145.333358, 29.311109, "mdl-1002:logo");
Reply
#3

https://sampforum.blast.hk/showthread.php?tid=651543 here it is buddy
Reply
#4

Quote:
Originally Posted by DeepCode
Посмотреть сообщение
Thank you! Worked fine!
Rep+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)