Textdraw (Showing, then hiding themselves).
#1

I've actually never used the Model preview for Textdraws before, and currently all the textdraws are mainly Placeholder as in (Text: not PlayerText, but I'd like to possibly know whats going on, as i'm not quite sure.

Note: The cause is not me Hiding the textdraws as the function that shows them requires false as an input to do so, and that is set to True as default eg. (Showthis(playerid); & Showthis(playerid, false);

Note 2: The boxes on the right aren't marked as MODEL PREVIEWS this is why they're showing.

Code (Slot) [There are a total of 18 and this is pretty much the same]:
pawn Код:
CharacterInventorySlots[playerid][0] = TextDrawCreate(195.999877, 127.763008, "_");
    TextDrawLetterSize(CharacterInventorySlots[playerid][0], 0.000000, 4.212957);
    TextDrawTextSize(CharacterInventorySlots[playerid][0], 157.666580, 0.000000);
    TextDrawUseBox(CharacterInventorySlots[playerid][0], true);
    TextDrawFont(CharacterInventorySlots[playerid][0], TEXT_DRAW_FONT_MODEL_PREVIEW);
    //TextDrawSetPreviewModel(CharacterInventorySlots[playerid][0], 411);
    TextDrawBackgroundColor(CharacterInventorySlots[playerid][0], 0xDDA0DDFF);
Image

Image (Finally got a screenshot of it showing):
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)