SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 21/02/2018, 07:54 AM   #1
Элиот
Big Clucker
 
Join Date: Aug 2011
Location: Europe
Posts: 59
Reputation: 0
Default Custom TXD and Textdraws

Hi. I created a custom TXD overlay and then made a textdraw with it. It works as long as I have it in my root models/txd folder, but when I download it from the server (deleted from models/txd), it doesn't appear anymore.

Code:
LogBackground = TextDrawCreate(145.333358, 29.311109, "custtxd:overlay");
TextDrawTextSize(LogBackground, 350.000000, 265.000000);
TextDrawAlignment(LogBackground, 1);
TextDrawColor(LogBackground, -1);
TextDrawSetShadow(LogBackground, 0);
TextDrawBackgroundColor(LogBackground, 255);
TextDrawFont(LogBackground, 4);
TextDrawSetProportional(LogBackground, 0);
I tried switching custtxd with the model ID, cached name etc and without a luck so far. Any ideas?
Элиот is offline   Reply With Quote
Old 21/02/2018, 08:45 AM   #2
ATomas
Huge Clucker
 
Join Date: Jul 2009
Location: Czech Republic
Posts: 251
Reputation: 7
Default Re: Custom TXD and Textdraws

You need assign .txd file to .dff file (existing!) Example:

Code:
AddSimpleModel(-1,19379,-2000,"something.dff","custtxd.txd");
LogBackground = TextDrawCreate(145.333358, 29.311109, "mdl-2000:overlay");
...
ATomas is offline   Reply With Quote
Old 21/02/2018, 08:58 AM   #3
Элиот
Big Clucker
 
Join Date: Aug 2011
Location: Europe
Posts: 59
Reputation: 0
Default Re: Custom TXD and Textdraws

@ATomas Works like a charm! Thanks, mate. +rep
Элиот is offline   Reply With Quote
Reply

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
Custom models for textdraws Sanady SA-MP 0.3.DL 9 05/11/2017 01:06 PM
[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 02:10 PM
Custom Graffiti System (Custom Creation & Placement) EiresJason Screenshots and Videos 13 19/10/2013 06:58 PM
Global TextDraws on top of Player TextDraws [resolved] Joe Staff Scripting Help 0 17/05/2013 05:35 AM


All times are GMT. The time now is 04:54 PM.


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