Custom Texture - 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 Texture (
/showthread.php?tid=650738)
Custom Texture -
Stefand - 05.03.2018
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?
Re: Custom Texture -
RogerCosta - 05.03.2018
Try enable BOX and change box size.
Re: Custom Texture -
Stefand - 05.03.2018
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.
Re: Custom Texture -
Stefand - 05.03.2018
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
Re: Custom Texture -
DavidZvla - 05.03.2018
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
Re: Custom Texture -
NaS - 10.03.2018
Quote:
Originally Posted by DavidZvla
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.