TextDrawSetString moving??
#1

Hey, for example i got simple Textdraw with text "1234" . And then I set that textdraw string to 123456789 and textdraw changes his position(for example move to left). How do I make textdraw stay in one place when I set string?
Reply
#2

So, how?
Reply
#3

Thats probably because you use align 2 - center

https://sampwiki.blast.hk/wiki/TextDrawAlignment

if you use align 1 than the left side of the textdraw wont move
if you use align 2 than the center wont move
if you use align 3 than the right side wont move
Reply
#4

I use align 1. But i dont want any side to move
Reply
#5

If the string is bigger than before the textdraw need to extent, you can only fix one position

This should make it clear, left, center, right
1234
123456789
1234
123456789
1234
123456789
The actually position set by TextDrawCreate wont move as it is always where the fixed point is
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)