DakiLLa Posted November 21, 2009 Share Posted November 21, 2009 hey guys, is there server side function same as 'tocolor' ? or may be somebody knows a solution, how to transform rgb color format to a hex-string? Thx Link to comment
Awwu Posted November 21, 2009 Share Posted November 21, 2009 You could try this one and see if it returns the same values (tested through lua demo for syntax, didn't test in game). function tocolor( r, g, b, a ) a = tonumber( a ) or 255 return tonumber( string.format( "0x%X%X%X%X", a, r, g, b ) ) end Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now