PDA

View Full Version : [Help] Text Draw Preview Model


Kajlle
07/06/2014, 10:31 AM
This is the cmd:
YCMD:v(playerid, params[], help)
{
#pragma unused help
#pragma unused params
if(PlayerInfo[playerid][pVehicle] != 1) return SCM(playerid,-1,"You don't have a vehicle!");
new vid = GetPlayerVehicleID(playerid); new id = GetVehicleID(vid);
for(new i = 0; i < sizeof(TD_VINFO); i++) { PlayerTextDrawShow(playerid, TD_VINFO[i][playerid]); }

PlayerTextDrawSetPreviewModel(playerid, TD_VINFO[14][playerid], VehicleInfo[id][vModel]);

return 1;
}

in scriptfiles: http://prntscr.com/3qgo50

and preview result: http://prntscr.com/3qgpg9

this infernus is the default textdraw