MIKI785 Posted December 16, 2011 Share Posted December 16, 2011 Hi, I want to change color of car, but on the wiki it says that this function accept GTA's 0-126 only.. but I want to use 1.1's RGB feature. How? Is it another function? I didn't find it among vehicle releated functions on the wiki.. Link to comment
sckatchof Posted December 16, 2011 Share Posted December 16, 2011 Use this : vehicle1 = createVehicle ( ID, X, Y, Z, Rx, Ry, Rz ) setVehicleColor ( vehicle1, getColorFromString("#FF0000") ) Link to comment
MIKI785 Posted December 16, 2011 Author Share Posted December 16, 2011 Can I just use setVehicleColor(vehicle, 250, 0, 0) for red? Link to comment
sckatchof Posted December 16, 2011 Share Posted December 16, 2011 Can I just use setVehicleColor(vehicle, 250, 0, 0) for red? You can't. Read this: https://wiki.multitheftauto.com/wiki/SetVehicleColor Link to comment
MIKI785 Posted December 16, 2011 Author Share Posted December 16, 2011 I read it, that's why I posted this. How can you use #FF0000 then? Link to comment
JR10 Posted December 16, 2011 Share Posted December 16, 2011 I think the wiki page is outdated. setVehicleColor works with rgb. like setVehicleColor(vehicle,r1,g1,b1,r2,g2,b2) Link to comment
sckatchof Posted December 16, 2011 Share Posted December 16, 2011 I read it, that's why I posted this.How can you use #FF0000 then? this site to choose all the codes colors [url]http://html-color-codes.info/[/url] Link to comment
Castillo Posted December 16, 2011 Share Posted December 16, 2011 Can I just use setVehicleColor(vehicle, 250, 0, 0) for red? You can't. Read this: https://wiki.multitheftauto.com/wiki/SetVehicleColor You can... the color1, color2, color3, color4 is optional now, you can use R, G, B colors. Like this: setVehicleColor(theVehicle, 0, 255, 0) -- Will set the color to GREEN. 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