JuniorMelo Posted June 12, 2013 Posted June 12, 2013 Hello I wanted to know and if possible will leave color of vehicle same color the RadarArea ??? someArea = createRadarArea ( 2654.64087, 971.73938 , 75 , 100 , 0 , 0 , 0 , 255 ) local flag = setRadarAreaColor ( someArea, 255, 85, 85, 170 ) car = createVehicle ( 411, 2662.76196, 981.67383, 6.73438, 0, 0, 0, "TEAM" ) setVehicleColor ( car, 255, 2, 0, 255 ) Sorry My English
Castillo Posted June 12, 2013 Posted June 12, 2013 Yes, you can use getRadarAreaColor to get the color of it.
JuniorMelo Posted June 12, 2013 Author Posted June 12, 2013 Yes, you can use getRadarAreaColor to get the color of it. local r,g,b,a = getRadarAreaColor ( area )
Castillo Posted June 12, 2013 Posted June 12, 2013 Yes, you'll only need R, G, B for the vehicle color.
JuniorMelo Posted June 12, 2013 Author Posted June 12, 2013 Yes, you'll only need R, G, B for the vehicle color. someArea = createRadarArea ( 2654.64087, 971.73938 , 75 , 100 ,0, 255, 0, 255 ) local r,g,b,a = getRadarAreaColor ( someArea ) car = createVehicle ( 411, 2662.76196, 981.67383, 6.73438, 0, 0, 0, "TEAM" ) setVehicleColor ( car, r,g,b,a )
JuniorMelo Posted June 12, 2013 Author Posted June 12, 2013 The alpha is not used. .o Thank you again !!!!
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