SA-MP Forums Archive
what's the function to preview vehicles? (I.e for dealerships) - 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: what's the function to preview vehicles? (I.e for dealerships) (/showthread.php?tid=418940)



what's the function to preview vehicles? (I.e for dealerships) - Dokins - 26.02.2013

Does anyone know the function? I can't remember it or where to find it.

Ya know, the one with the arrows and you can click left and right?


Re: what's the function to preview vehicles? (I.e for dealerships) - Bakr - 26.02.2013

Код:
TextDrawFont(playerid, txtSprite, TEXT_DRAW_FONT_MODEL_PREVIEW);
native TextDrawSetPreviewModel(Text:text, modelindex);
native TextDrawSetPreviewRot(Text:text, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fZoom = 1.0);
For ease-of-use, use mSelection include.