LonelyRoad Posted April 21, 2014 Share Posted April 21, 2014 I am trying to find a way to shorten the args used by setVehicleColor, but I want to do it dynamically. I actually in this case want to, if possible, mimic the behaviour of the < 1.0.5 setVehicleColor command. The reason is I am currently asking for 6 args from an addCommandHandler() just to specify a vehicle's colour when its created, it makes it one heck of a long command. I suppose one question is how many vehicles actually used two colours? Come to think of it I don't believe there is many..? Link to comment
cheez3d Posted April 21, 2014 Share Posted April 21, 2014 You can create a table with the original San Andreas color codes: local colors = { [0] = {0,0,0}, [1] = {245,245,245}, [2] = {42,119,161} -- and so on until 126 } I suggest Instant Eyedropper for finding out the RGB color codes of those colors fast as I did with these three colors above. http://instant-eyedropper.com/ 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