14.07.2016, 06:17
To com um problema aqui, nгo estou conseguindo setar um objeto ao textdraw, no caso um Preview Model. Segue o cуdigo abaixo. Quem souber, por favor me indique o erro. Vasculhei o fуrum inteiro atrбs de soluзхes e nenhuma surtiu efeito.
PHP код:
inventoryText[playerid][17] = CreatePlayerTextDraw(playerid, 334.000000, 144.000000, "_"); // modelid
PlayerTextDrawAlignment(playerid, inventoryText[playerid][17], 2);
PlayerTextDrawBackgroundColor(playerid, inventoryText[playerid][17], 96);
PlayerTextDrawFont(playerid, inventoryText[playerid][17], 5);
PlayerTextDrawLetterSize(playerid, inventoryText[playerid][17], 0.500000, 17.000000);
PlayerTextDrawColor(playerid, inventoryText[playerid][17], -1);
PlayerTextDrawSetOutline(playerid, inventoryText[playerid][17], 0);
PlayerTextDrawSetShadow(playerid, inventoryText[playerid][17], 0);
PlayerTextDrawSetProportional(playerid, inventoryText[playerid][17], 1);
PlayerTextDrawUseBox(playerid, inventoryText[playerid][17], 1);
PlayerTextDrawBoxColor(playerid, inventoryText[playerid][17], 1);
PlayerTextDrawTextSize(playerid, inventoryText[playerid][17], 0.000000, 130.000000);
PlayerTextDrawSetPreviewModel(playerid, inventoryText[playerid][17], 19382);
PlayerTextDrawSetPreviewRot(playerid, inventoryText[playerid][17], 0.000000, -30, 0.000000, 2.2);
PlayerTextDrawSetSelectable(playerid, inventoryText[playerid][17], 0);