AddSimpleModel
#1

Greetings, My question is this:
According Kalcor: - You should be able to use downloaded txds as textdraw sprites using the tag mdl-ID:texturename. Where '-ID' is a model added with AddSimpleModel.

What would be the DFF of loadsc1.txd?
for AddSimpleModel(virtualworld, baseid, newid, dffname[], txdname[]);


How would you use the TextDraw to print?

welcomeText = TextDrawCreate(240.0,580.0,"mdl-2010:iconlog");
TextDrawFont(welcomeText, 4);


It did not work, Does anyone help me do this?
My version is 0.3.DL
example:

Reply
#2

Does anyone know this?
Reply
#3

You need add the .txd to some existing object...

Код:
AddSimpleModel(-1, 19377, -2010, "whatever.dff", "loadsc1.txd");
welcomeText = TextDrawCreate(240.0,580.0,"mdl-2010:iconlog");
TextDrawFont(welcomeText, 4);
Reply
#4

For existing txd from original GTA and SAMP, create textdraw with font 4 and set string name to: name_of_file_txd:texture_name, example of loadsc1:

loadsc1:loadsc1

mdl-ID:texturename is required only for texture from custom objects.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)