SDraw Posted February 25, 2014 Share Posted February 25, 2014 After updating to 1.3.5 clientside vehicles have wrong colors after creating. Colors changes to random. Steps: 1.Create clientside vehicle. 2.Change its colors (RGB). Sample code: local veh = createVehicle(...) setVehicleColor(veh,0,141,255,0,0,0) Besides, getVehicleColor returns right colors. Changing color after a while is right too. 1.3.4 - right vehicle color 1.3.5 - wrong vehicle color Link to comment
0 Anubhav Posted February 25, 2014 Share Posted February 25, 2014 Did you added any shader/effect for vehicle? It maybe the problem. Link to comment
0 SDraw Posted February 25, 2014 Author Share Posted February 25, 2014 Yes, there were two shaders: for hiding numberplate part and for replacing texture of it. But even without them problem still exists. Sorry for posting there, because I've just found button to report issue on bugtracker (it didn't want to appear). Link to comment
0 Anubhav Posted February 25, 2014 Share Posted February 25, 2014 Are you sure you entered same R,G,B of setVehicleColor? Link to comment
0 MTA Team ccw Posted February 25, 2014 MTA Team Share Posted February 25, 2014 I can't reproduce this problem. Can you make a resource to show it? Link to comment
0 SDraw Posted February 25, 2014 Author Share Posted February 25, 2014 I can't reproduce this problem. Can you make a resource to show it? local px,py,pz = getElementPosition(localPlayer) local veh = createVehicle(411,px-5,py-5,pz) setVehicleColor(veh,0,141,255,0,0,0) function colorChFunc() setVehicleColor(veh,0,141,255,0,0,0) end bindKey("j","down",colorChFunc) Link to comment
0 MTA Team ccw Posted February 25, 2014 MTA Team Share Posted February 25, 2014 Thanks. Still can't reproduce the problem. Are you sure this is a 1.3.5 issue? It looks like the vehicle RGB color is being changed into color ids like this: setVehicleColor( veh, getVehicleColor(veh) ) Check your scripts to see if they are using setVehicleColor anywhere. Link to comment
0 SDraw Posted February 25, 2014 Author Share Posted February 25, 2014 Thanks. Still can't reproduce the problem. Are you sure this is a 1.3.5 issue?Yes, I use latest build (1.3.5-rc-6159).Check your scripts to see if they are using setVehicleColor anywhere.Only in one script, exactly where it should be. Link to comment
Question
SDraw
After updating to 1.3.5 clientside vehicles have wrong colors after creating. Colors changes to random.
Steps:
1.Create clientside vehicle.
2.Change its colors (RGB).
Sample code:
Besides, getVehicleColor returns right colors. Changing color after a while is right too.
1.3.4 - right vehicle color
1.3.5 - wrong vehicle color
Link to comment
8 answers to this question
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