Problem with clickable textdraw
#1

Hey, I am unable to click on the textdraw, it shows up but once I hover over it with my mouse nothing happens same result once I try clicking on it. Im not sure what is wrong with it
pawn Код:
//under ongamemodeinit
    Textdraw0 = TextDrawCreate(219.000000, 176.000000, "Assault Rifle");
    TextDrawBackgroundColor(Textdraw0, 255);
    TextDrawFont(Textdraw0, 1);
    TextDrawLetterSize(Textdraw0, 0.500000, 1.700000);
    TextDrawColor(Textdraw0, -1);
    TextDrawSetOutline(Textdraw0, 0);
    TextDrawSetProportional(Textdraw0, 1);
    TextDrawSetShadow(Textdraw0, 1);
    //TextDrawUseBox(Textdraw0, 1);
    //TextDrawBoxColor(Textdraw0, 255);
    TextDrawTextSize(Textdraw0, 319.000000, 0.000000);
    TextDrawSetSelectable(Textdraw0, 1);
//under onplayerspawn
    TextDrawShowForPlayer(playerid, Textdraw0);
    SelectTextDraw(playerid, 0xA3B4C5FF);
Reply
#2

did you add anything at OnPlayerClickTextDraw function? maybe be cause of that, (empty)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)