Function TextDrawSetPreviewModel set the model for a textdraw model preview.

Function TextDrawSetPreviewModel was added in 0.3x and will not work in earlier versions!
The textdraw MUST use the font type TEXT_DRAW_FONT_MODEL_PREVIEW in order for this function to have effect.
Use TextDrawBackgroundColor to set the background color behind the model.

(Text:text, modelindex)
int text The textdraw id that will display the 3D preview.
int modelindex The GTA SA or SA-MP model ID to display.

Return Values:
This function does not return any specific values.

new Text:textdraw;
public OnGameModeInit()
	textdraw = TextDrawCreate(320.0, 240.0, "_");
	TextDrawFont(textdraw, TEXT_DRAW_FONT_MODEL_PREVIEW);
	TextDrawUseBox(textdraw, 1);
	TextDrawBoxColor(textdraw, 0x000000FF);
	TextDrawTextSize(textdraw, 40.0, 40.0);
	TextDrawSetPreviewModel(textdraw, 411); //Display model 411 (Infernus)
        //TextDrawSetPreviewModel(textdraw, 1); //Display model 1 (CJ Skin)
        //TextDrawSetPreviewModel(textdraw, 18646); //Display model 18646 (Police light object)
	//You still have to use TextDrawShowForAll/TextDrawShowForPlayer to make the textdraw visible.
	return 1;

Related Functions
The following functions may be useful, as they are related to this function in one way or another.

Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.