math.random( 1, 18 ) Toggle

Hello,

I make my HUD and add AGE OLD to HUD

I have this problem :

My CODE :


color = { "green", "red", "blue", "yellow" }
	local age = table.Random( color )

How to fix value don’t change …
Thank

Please PM someone listed in this thread who speaks French: http://forum.facepunch.com/showthread.php?t=1460926

Ok i have James i PM translator to this problem thank

[editline]13th October 2015[/editline]

I change my post

Your putting it in a think/draw hook or some sort of a hook which repeats it self, that’s why it keeps random it.

Indeed, put the code itself outside of that, then use the variable holding said colour in HUDPaint

Okay a placed outside of HUDPAINT and work thank !