TextDraw Showing on top of another TextDraw.
#1

Hi, I've been searching around the net for a while, and I'm trying to figure how out to prevent a player TextDraw from showing on top of another TextDraw that was created after the first one. I have found no answers and I would appreciate a little help. Is this a bug for player textdraws or is there a way to prevent this kind of thing from happening.

Thanks.
Reply
#2

If you mean that you don't want the first textdraw to be seen and want to show the second textdraw without overlapping the 1st one then

TextDrawHideForPlayer
Reply
#3

Thanks Ken, I'm already using this function, it's kind of annoying though and I'm trying to find a way to prevent the first text draw that was sent to the client from overlapping over the one that was sent afterward.
Reply
#4

Found a solution. Thanks . I'm using an array that knows which draw was created first. And something that calculates the position of the draws + the sizes. If the draw is bigger than the draw that was created earlier and the draw is on top of the other draw. It will hide it automatically. After creating all the draws, I use ProcessPlayerDrawOverlapping(playerid). After the calculations, it will show the draws it's supposed to show. This also prevents the draws from blinking. Because if It shows the player draws and then hide the ones that aren't supposed to show, it might blink if there is a slight lag on the server.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)