Custom TXD and Textdraws
#1

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);
Reply
#2

Screen 520x520
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)