SA-MP Forums

Go Back   SA-MP Forums > SA-MP DL Edition > SA-MP 0.3.DL

 
 
Thread Tools Display Modes
Old 14/03/2018, 03:02 PM   #1
Libbyphay
Big Clucker
 
Join Date: May 2017
Posts: 190
Reputation: 0
Default Custom TXD and Textdraws

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);
Libbyphay is offline  
Old 14/03/2018, 03:10 PM   #2
Libbyphay
Big Clucker
 
Join Date: May 2017
Posts: 190
Reputation: 0
Default Re: Custom TXD and Textdraws

Screen 520x520
Libbyphay is offline  
Old 14/03/2018, 03:42 PM   #3
RogerCosta
Huge Clucker
 
RogerCosta's Avatar
 
Join Date: Aug 2014
Location: Santos, Brazil.
Posts: 282
Reputation: 92
Default Re: Custom TXD and Textdraws

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
RogerCosta is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[GameMode] (0.3x)--->Battlefield WarZone<---(TDM)(Extreme DM)(Made From Scratch)(Custom Script)(5 Teams)(Classes)(Custom Maps) nor15 Gamemode Scripts 11 19/07/2014 03:10 PM


All times are GMT. The time now is 06:15 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.