• How do you make flashing color text for printers or scoreboards?
    3 replies, posted
I was wondering how to make the text on printers flash colors to make them look nicer. thanks in return.
I usually do something along the lines of Color( math.sin( CurTime() ) * 255, 0, 0 ); which would give you a flashing red.
You could go to gamemodes > darkrp > entities > entities > money_printer > cl_init.lua then near the bottom you should see: [LUA] cam.Start3D2D(Pos + Ang:Up() * 11.5, Ang, 0.11) draw.WordBox(2, -TextWidth*0.5, -30, "Money printer", "HUDNumber5", Color(140, 0, 0, 100), Color(255,255,255,255)) draw.WordBox(2, -TextWidth2*0.5, 18, owner, "HUDNumber5", Color(140, 0, 0, 100), Color(255,255,255,255)) cam.End3D2D()[/LUA] change it to: [LUA] cam.Start3D2D(Pos + Ang:Up() * 11.5, Ang, 0.11) local red = math.random(1, 255) local green = math.random(1, 255) local blue = math.random(1, 255) draw.WordBox(2, -TextWidth*0.5, -30, "Money printer", "HUDNumber5", Color(140, 0, 0, 100), Color(red,green,blue,255)) draw.WordBox(2, -TextWidth2*0.5, 18, owner, "HUDNumber5", Color(140, 0, 0, 100), Color(255,255,255,255)) cam.End3D2D()[/LUA]
[QUOTE=Blasphemy;41457777]I usually do something along the lines of Color( math.sin( CurTime() ) * 255, 0, 0 ); which would give you a flashing red.[/QUOTE] Where would this line go?
Sorry, you need to Log In to post a reply to this thread.