Posts: 929
Threads: 17
Joined: Mar 2012
Reputation:
0
is it possible to use hex in a textdraw string to create different colors?
iv tried with {FF00FF} in the string and it does nothing.
I dont want to use the color codes like "~r~"
I assume its not possible as I have found nothing on it in the wiki or forums,
just wanting someone to confirm this
thanks,
Posts: 1,167
Threads: 57
Joined: Jul 2010
Reputation:
0
why cant you use TextDrawColor and set there any color ya wish
I don't think hex color supports on TextDraw string as they use different method.
Posts: 929
Threads: 17
Joined: Mar 2012
Reputation:
0
okay thanks,
I think of another way,
Posts: 929
Threads: 17
Joined: Mar 2012
Reputation:
0
well really i was trying to avoid that as the TD will display more than just Health
and when the health gets to low it will turn red...
but other things that are displayed might not be in green or red, but will be on a newline
so I can go back to hex color and customize them with the inline colors.
I got it working,but without hex colors im just limited to the
~r~~g~~i~~b~ inline colors. and I can set the color of the td in general with a hex.
Ill just plan it out a little better,
thx
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
~G~ and ~R~ are ok. If you want a lighter red, use ~R~~H~.