SA-MP Forums Archive
Problem with previewmodel. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with previewmodel. (/showthread.php?tid=654431)



Problem with previewmodel. - dani18 - 28.05.2018

Well, i'm trying to create a textdraw that reflects some weapons, and the result is this, the image of the object is cropped, what can i do?



This is my code.
PHP код:
TDEditor_TD[1] = TextDrawCreate(471.111145128.555541"");
TextDrawLetterSize(TDEditor_TD[1], 0.0000000.000000);
TextDrawTextSize(TDEditor_TD[1], 90.00000090.000000);
TextDrawAlignment(TDEditor_TD[1], 1);
TextDrawColor(TDEditor_TD[1], -1);
TextDrawSetShadow(TDEditor_TD[1], 0);
TextDrawSetOutline(TDEditor_TD[1], 0);
TextDrawBackgroundColor(TDEditor_TD[1], -871318784);
TextDrawFont(TDEditor_TD[1], 5);
TextDrawSetProportional(TDEditor_TD[1], 0);
TextDrawSetShadow(TDEditor_TD[1], 0);
TextDrawSetPreviewModel(TDEditor_TD[1], 355);
TextDrawSetPreviewRot(TDEditor_TD[1], 0.0000000.0000000.0000001.000000); 



Re: Problem with previewmodel. - dani18 - 28.05.2018

bump


Re: Problem with previewmodel. - FailerZ - 28.05.2018

You can try to zoom out in TextDrawSetPreviewRot and increase the textdraw size in TextDrawTextSize

Try this: (Changes are red colored)
Код:
	TDEditor_TD[1] = TextDrawCreate(471.111145, 128.555541, ""); 
	TextDrawLetterSize(TDEditor_TD[1], 0.000000, 0.000000); 
	TextDrawTextSize(TDEditor_TD[1], 150.000000, 150.000000); 
	TextDrawAlignment(TDEditor_TD[1], 1); 
	TextDrawColor(TDEditor_TD[1], -1); 
	TextDrawSetShadow(TDEditor_TD[1], 0); 
	TextDrawSetOutline(TDEditor_TD[1], 0); 
	TextDrawBackgroundColor(TDEditor_TD[1], -871318784); 
	TextDrawFont(TDEditor_TD[1], 5); 
	TextDrawSetProportional(TDEditor_TD[1], 0); 
	TextDrawSetShadow(TDEditor_TD[1], 0); 
	TextDrawSetPreviewModel(TDEditor_TD[1], 355);
	TextDrawSetPreviewRot(TDEditor_TD[1], 0.000000, 0.000000, 0.000000, 2.5);



Re: Problem with previewmodel. - dani18 - 28.05.2018

Quote:
Originally Posted by FailerZ
Посмотреть сообщение
You can try to zoom out in TextDrawSetPreviewRot and increase the textdraw size in TextDrawTextSize

Try this: (Changes are red colored)
Код:
	TDEditor_TD[1] = TextDrawCreate(471.111145, 128.555541, ""); 
	TextDrawLetterSize(TDEditor_TD[1], 0.000000, 0.000000); 
	TextDrawTextSize(TDEditor_TD[1], 150.000000, 150.000000); 
	TextDrawAlignment(TDEditor_TD[1], 1); 
	TextDrawColor(TDEditor_TD[1], -1); 
	TextDrawSetShadow(TDEditor_TD[1], 0); 
	TextDrawSetOutline(TDEditor_TD[1], 0); 
	TextDrawBackgroundColor(TDEditor_TD[1], -871318784); 
	TextDrawFont(TDEditor_TD[1], 5); 
	TextDrawSetProportional(TDEditor_TD[1], 0); 
	TextDrawSetShadow(TDEditor_TD[1], 0); 
	TextDrawSetPreviewModel(TDEditor_TD[1], 355);
	TextDrawSetPreviewRot(TDEditor_TD[1], 0.000000, 0.000000, 0.000000, 2.5);
Yeah is this! ty @FailerZ +rep for you