ATM Textdraw
#1

I was trying to create an ATM textdraw and I was having a hard time on making the boxes selectable. You may notice on the code that I have used (2x) ~n~ for the Deposit, Withdraw and Transaction. Originally it was suppose to be separated, but to avoid consuming too much of textdraws I decided to use the ~n~ instead. Now, that isn't the problem. The problem is that the boxes, The area part of the boxes should be selectable. But OnPlayerClickTextdraw doesn't detect them, I have used two textdraw editor and still I have no luck.

Can you guys help me out, figure out what is the problem? There is another problem as well, Only Transaction shows up and not Deposit & Withdraw.



PHP Code:
// ATM Textdraws @ Under OnGameModeInit
Textdraw0 TextDrawCreate(467.599945123.206672"usebox");
TextDrawLetterSize(Textdraw00.00000028.139629);
TextDrawTextSize(Textdraw0178.0000300.000000);
TextDrawAlignment(Textdraw01);
TextDrawColor(Textdraw00);
TextDrawUseBox(Textdraw0true);
TextDrawBoxColor(Textdraw0102);
TextDrawSetShadow(Textdraw00);
TextDrawSetOutline(Textdraw00);
TextDrawFont(Textdraw00);
Textdraw1 TextDrawCreate(459.599975131.419998"usebox");
TextDrawLetterSize(Textdraw10.00000026.314445);
TextDrawTextSize(Textdraw1184.3999930.000000);
TextDrawAlignment(Textdraw11);
TextDrawColor(Textdraw10);
TextDrawUseBox(Textdraw1true);
TextDrawBoxColor(Textdraw1866792447);
TextDrawSetShadow(Textdraw10);
TextDrawSetOutline(Textdraw10);
TextDrawFont(Textdraw10);
Textdraw2 TextDrawCreate(323.200134135.893371"Welcome~n~ATM Machine");
TextDrawLetterSize(Textdraw20.5979992.361599);
TextDrawAlignment(Textdraw22);
TextDrawColor(Textdraw2, -1);
TextDrawSetShadow(Textdraw20);
TextDrawSetOutline(Textdraw21);
TextDrawBackgroundColor(Textdraw251);
TextDrawFont(Textdraw22);
TextDrawSetProportional(Textdraw21);
Textdraw3 TextDrawCreate(323.199859225.493286"Deposit~n~~n~Withdraw~n~~n~Transaction");
TextDrawLetterSize(Textdraw30.5275981.958400);
TextDrawAlignment(Textdraw32);
TextDrawColor(Textdraw3, -1);
TextDrawSetShadow(Textdraw30);
TextDrawSetOutline(Textdraw31);
TextDrawBackgroundColor(Textdraw351);
TextDrawFont(Textdraw31);
TextDrawSetProportional(Textdraw31);
Textdraw4 TextDrawCreate(270.000000227.000000"_");
TextDrawBackgroundColor(Textdraw4255);
TextDrawFont(Textdraw41);
TextDrawLetterSize(Textdraw40.5000002.000000);
TextDrawColor(Textdraw40);
TextDrawSetOutline(Textdraw40);
TextDrawSetProportional(Textdraw41);
TextDrawSetShadow(Textdraw41);
TextDrawUseBox(Textdraw41);
TextDrawBoxColor(Textdraw465535);
TextDrawTextSize(Textdraw4377.0000000.000000);
TextDrawSetSelectable(Textdraw41);
Textdraw5 TextDrawCreate(270.000000262.000000"_");
TextDrawBackgroundColor(Textdraw5255);
TextDrawFont(Textdraw51);
TextDrawLetterSize(Textdraw50.5000002.000000);
TextDrawColor(Textdraw50);
TextDrawSetOutline(Textdraw50);
TextDrawSetProportional(Textdraw51);
TextDrawSetShadow(Textdraw51);
TextDrawUseBox(Textdraw51);
TextDrawBoxColor(Textdraw565535);
TextDrawTextSize(Textdraw5377.0000000.000000);
TextDrawSetSelectable(Textdraw51);
Textdraw6 TextDrawCreate(270.000000296.000000"_");
TextDrawBackgroundColor(Textdraw6255);
TextDrawFont(Textdraw61);
TextDrawLetterSize(Textdraw60.5000002.000000);
TextDrawColor(Textdraw60);
TextDrawSetOutline(Textdraw60);
TextDrawSetProportional(Textdraw61);
TextDrawSetShadow(Textdraw61);
TextDrawUseBox(Textdraw61);
TextDrawBoxColor(Textdraw665535);
TextDrawTextSize(Textdraw6377.0000000.000000);
TextDrawSetSelectable(Textdraw61);
// ATM Balance @ OnPlayerConnect
pTextdraws[9] = CreatePlayerTextDraw(playerid194.399978195.626708"Current Balance: $0");
PlayerTextDrawLetterSize(playeridpTextdraws[9], 0.3099991.137066);
PlayerTextDrawAlignment(playeridpTextdraws[9], 1);
PlayerTextDrawColor(playeridpTextdraws[9], -1);
PlayerTextDrawSetShadow(playeridpTextdraws[9], 0);
PlayerTextDrawSetOutline(playeridpTextdraws[9], 1);
PlayerTextDrawBackgroundColor(playeridpTextdraws[9], 51);
PlayerTextDrawFont(playeridpTextdraws[9], 3);
PlayerTextDrawSetProportional(playeridpTextdraws[9], 1); 
Reply


Messages In This Thread
ATM Textdraw - by JaKe Elite - 14.08.2016, 07:07
Re: ATM Textdraw - by jlalt - 14.08.2016, 08:14
Re: ATM Textdraw - by JaKe Elite - 14.08.2016, 09:21
Re: ATM Textdraw - by jlalt - 14.08.2016, 11:11
Re: ATM Textdraw - by JaKe Elite - 14.08.2016, 12:17

Forum Jump:


Users browsing this thread: 2 Guest(s)