SA-MP Forums Archive
Icons and Texdraws. - 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: Icons and Texdraws. (/showthread.php?tid=514884)



Icons and Texdraws. - rappy93 - 23.05.2014

Hey there. Does anyone know how or what functions should be used to created something like this ?
Look on the right side.




Re: Icons and Texdraws. - ball - 24.05.2014

https://sampwiki.blast.hk/wiki/TextDrawSetPreviewModel

This is textdraw - you have to create normal textdraw with font TEXT_DRAW_FONT_MODEL_PREVIEW and use function TextDrawSetPreviewModel.


Re : Icons and Texdraws. - S4t3K - 24.05.2014

Use iPLEOMAX's textdraw creator to create an empty textdraw on the position you want (easier InGame than on Internet I think).

Then, get the code of the empty textdraw and replace the font by TEXT_DRAW_FONT_MODEL_PREVIEW, and use the function ball have mentionned above to set a preview model into the empty textdraw.


Re: Icons and Texdraws. - rappy93 - 24.05.2014

Okay,so by using "TextDrawSetPreviewModel" I can make the model be that pizza or bottle?


Re : Icons and Texdraws. - S4t3K - 24.05.2014

Absolutely.

Put the model in TextDrawSetPreviewModel as you would put it in first parameter in Create(Dynamic)Object.