Textdraw problem
#1

Whole text is getting hightlighted when i hover my mouse for example

USA

TALIBAN

i am hovering my mouse on USA but taliban will also get hightlighted i tried creating Invisible box around USA and TALIBAN but no sucess
Reply
#2

you have to change textdraw selection area with: TextDrawTextSize
Reply
#3

Quote:
Originally Posted by M4D
Посмотреть сообщение
you have to change textdraw selection area with: TextDrawTextSize
Can you show me an example

Код:
Sniper = TextDrawCreate(283.923889, 265.416595, "Sniper");
	TextDrawLetterSize(Sniper, 0.449999, 1.600000);
	TextDrawAlignment(Sniper, 1);
	TextDrawColor(Sniper, -1523963137);
	TextDrawSetShadow(Sniper, 0);
	TextDrawSetOutline(Sniper, 1);
	TextDrawBackgroundColor(Sniper, 51);
	TextDrawFont(Sniper, 2);
	TextDrawSetProportional(Sniper, 1);
	TextDrawSetSelectable(Sniper, true);
Reply
#4

Quote:
Originally Posted by Nabster
Посмотреть сообщение
Can you show me an example

Код:
Sniper = TextDrawCreate(283.923889, 265.416595, "Sniper");
	TextDrawLetterSize(Sniper, 0.449999, 1.600000);
	TextDrawAlignment(Sniper, 1);
	TextDrawColor(Sniper, -1523963137);
	TextDrawSetShadow(Sniper, 0);
	TextDrawSetOutline(Sniper, 1);
	TextDrawBackgroundColor(Sniper, 51);
	TextDrawFont(Sniper, 2);
	TextDrawSetProportional(Sniper, 1);
	TextDrawSetSelectable(Sniper, true);
Depends on how large the text "Sniper" is.
Example: TextDrawTextSize(Sniper, 3.0, 3.0); //Add it under TextDrawSetSelectable....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)