Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Problem PlayerTextDrawSetPreviewModel

$
0
0
Hey guys! I have a problem with the "Preview Model" I'm using the function called "GetVehicleModel" and want to put the model on the PreviewTextdraw... sounds easy, but i have a problem, the red line dosn't work... Show me the CJ skin

Code:

                new vehicle = GetPlayerVehicleID(i);
                new modelid = GetVehicleModel(vehicle);
                SCMEx(i, COLOR_WHITE, "%d",modelid);
                new string[64];
                format(string, 64, "Speed: %d KM/H", GetVehicleSpeed(vehicle));
                PlayerTextDrawSetString(i, SpeedoMeter6[i], string);
                PlayerTextDrawSetPreviewModel(i, SpeedoMeter1[i], modelid);

Code:

        SpeedoMeter1[playerid] = CreatePlayerTextDraw(playerid, 472.333221, 345.540893, "New Textdraw");
        PlayerTextDrawLetterSize(playerid, SpeedoMeter1[playerid], 0.449999, 1.600000);
        PlayerTextDrawTextSize(playerid, SpeedoMeter1[playerid], 82.666679, 61.392604);
        PlayerTextDrawAlignment(playerid, SpeedoMeter1[playerid], 1);
        PlayerTextDrawColor(playerid, SpeedoMeter1[playerid], -120);
        PlayerTextDrawUseBox(playerid, SpeedoMeter1[playerid], true);
        PlayerTextDrawBoxColor(playerid, SpeedoMeter1[playerid], -2139062017);
        PlayerTextDrawSetShadow(playerid, SpeedoMeter1[playerid], 0);
        PlayerTextDrawSetOutline(playerid, SpeedoMeter1[playerid], 0);
        PlayerTextDrawBackgroundColor(playerid, SpeedoMeter1[playerid], -256);
        PlayerTextDrawFont(playerid, SpeedoMeter1[playerid], 5);
        PlayerTextDrawSetProportional(playerid, SpeedoMeter1[playerid], 1);


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>