Custom TXD and Textdraws - 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 TXD and Textdraws (
/showthread.php?tid=650117)
Custom TXD and Textdraws -
Элиот - 21.02.2018
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.
Код:
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?
Re: Custom TXD and Textdraws -
ATomas - 21.02.2018
You need assign .txd file to .dff file (existing!) Example:
Код:
AddSimpleModel(-1,19379,-2000,"something.dff","custtxd.txd");
LogBackground = TextDrawCreate(145.333358, 29.311109, "mdl-2000:overlay");
...
Re: Custom TXD and Textdraws -
Элиот - 21.02.2018
@ATomas Works like a charm! Thanks, mate. +rep