So thanks to MakeCents I have decided to make a tut for people about color info for HUD's. --------------------------------------------- First of all you will need an HUD. Now how color info works, if you want to change an entire text or image, you would probably want to use -------------------------------- HUD.color = ( ( Color1 / 255 ), ( Color2 / 255 ), ( Color3 / 255 ) ); Color1, Color2, and Color3 all specify the color you want. Color1 would be Red, so change that as you want and you can modify how much red you want. Color2 would be Green, so of course modify that as much as you want. Color3 would be Blue, so again modify that as you want. -------------------------------- Now lets say you wanted 255 out of 255 so completely 1 color. In this case rather than writing HUD.color = ( ( 255 / 255 ), ( 163 / 255 ), ( 255 / 255 ) ); simply you can replace it with HUD.color = ( 1, ( 163 / 255 ), 1 ); Also rather than writing ( 163 / 255 ) you could modify it as a decimal but probably better to just go out of 255 in this case. Also something else if you want ( 0 / 255 ) replace it with 0 as you would do 1. Makes it easier as well. -------------------------------- Now lets say you wanted to just change an individual letter or word or phrase or something that isn't an entire text. You would use the up arrow + a number 0 to 9. There is to be no spaces between the up arrow and the number otherwise it will show both in the text. Using ^7 will set the color back to its original color so if HUD.color is ( 1, 0, 0 ), once it sees ^7 it will go back to being red rather than white. I believe haven't used this in a while but I believe this is correct. Also using these will override HUD.color until ^7 is used. So now what each number means in terms of colors ---------------------------- Now an example of just modifying a small text HUD Settext( "Press ^1&&1^7 to buy jugg" ); This will now print to screen Press F to buy Jugg ---------------------------- Now an example using HUD.color + a color code HUD.color = ( 1, 0, 0 ); HUD SetText( "Press ^4&&1^7 to buy Jugg" ); PressFto buy Jugg ---------------------------- Also a link for using ( R, G, B ) info http://www.rapidtables.com/web/color/RGB_Color.htm
Last Edit: December 09, 2014, 03:13:47 pm by PROxFTW