Jump to content

Change car color


Wiebrendh

Recommended Posts

I tried a lot of things..

Player.Character.CurrentVehicle.Color.Equals(Color.Red);Player.Character.CurrentVehicle.Color = Color.Red;

And some more, but i cannot figure out how the hell i change the color of a car?

 

Probably one of the most stupid questions i have ever asked :/

Link to comment
Share on other sites

I use VirualStudio 2010

car color is a ColorIndex not a Color :)

what editor you are using?

Edited by Wiebrendh
Link to comment
Share on other sites

Try something like this :

Player.Character.CurrentVehicle.Color = ColorIndex.Black;
Link to comment
Share on other sites

 

Try something like this :

 

Player.Character.CurrentVehicle.Color = ColorIndex.Black;

Thanks, that did the trick :)

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.