Custom Texture
#1

Hi,

So I checked several topics on the forums regarding this subject, did everything it mentions but still I dont get to see my made logo.

Code:
AddSimpleModel(-1,19379,-3000,"wall027.dff","custom.txd");
    Textdraw0 = TextDrawCreate(250.000000, 90.000000, "mdl-3000:logo");
	TextDrawBackgroundColor(Textdraw0, 255);
	TextDrawFont(Textdraw0, 4);
	TextDrawLetterSize(Textdraw0, 0.900000, 8.000000);
	TextDrawColor(Textdraw0, -1);
	TextDrawSetOutline(Textdraw0, 0);
	TextDrawSetProportional(Textdraw0, 1);
	TextDrawSetShadow(Textdraw0, 1);
Inside my models folder:


Inside my cusotm.txd file:


What am I doing wrong?
Reply
#2

Try enable BOX and change box size.
Reply
#3

I forgot useartwork 1 in the config..

But I got another issue, while using the TD editor it works fine but once I export it and use it in the gamemode its not showing up.
Reply
#4

I dont know what caused it but my fix:

I bypassed it by a stock to create the textdraws under ongamemodeinit and a timer of 100 onplayerconnect which shows them
Reply
#5

I can confirm this, since i had the same problem...

if i type TextDrawShowForPlayer(playerid, CustomLogin);
directly into OnPlayerConnect, my custom texture don't show to the players...
even if i make a function and type ShowCustomLogin(playerid); without timer

but when i set a timer and call that function, the custom textdraw appears in screen properly...
a little weird, but it works xD
Reply
#6

Quote:
Originally Posted by DavidZvla
View Post
I can confirm this, since i had the same problem...

if i type TextDrawShowForPlayer(playerid, CustomLogin);
directly into OnPlayerConnect, my custom texture don't show to the players...
even if i make a function and type ShowCustomLogin(playerid); without timer

but when i set a timer and call that function, the custom textdraw appears in screen properly...
a little weird, but it works xD
Why weird? The custom models aren't loaded yet when OnPlayerConnect is called in 0.3DL.

You could use OnPlayerFinishedDownloading for that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)