05.06.2017, 17:39
To define textdraw's clickable area you need to use TextDrawTextSize:
The "X" parameter you need to provide textdraw's X position plus it's clickable area in X axis;
The "Y" parameter you need to provide only the clickable area in Y axis;
e.g.
Let's say you have a textdraw in position (100.0, 150.0) and the clickable area in X/Y axis is aX, aY;
The "X" parameter you need to provide textdraw's X position plus it's clickable area in X axis;
The "Y" parameter you need to provide only the clickable area in Y axis;
e.g.
Let's say you have a textdraw in position (100.0, 150.0) and the clickable area in X/Y axis is aX, aY;
PHP код:
MyTextDraw = TextDrawCreate(100.0, 150.0,"Example TextDraw");
TextDrawTextSize(MyTextDraw, 100.0 + aX, aY);