Custom TXD and Textdraws
#1

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?
Reply
#2

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");
...
Reply
#3

@ATomas Works like a charm! Thanks, mate. +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)