Jump to content

Saving colors


Fantanic

Recommended Posts

setVehicleColor -- r2, g2, b2 

And for the saving, you can use Account Data :

setAccountData 
getAccountData 

I find it much easier .

Good luck creating a vehicle an account - because it makes no sense, and therefore you shouldn't be advising people with incorrect methods of doing something.

Thanks , SQL is a little bit too hard for me since i dont rlly know how to use it exactly.

Im using the vehicle functions now so its working currently

Edit how can i add a second color to a vehicle?

You can add a secondary color to a vehicle with setVehicleColor. It takes in four branches of parameters (red, green, blue, red, green, blue, red, green, blue, red, green, blue), alternatively you can give it a GTA default color with the color IDs (0-126).

You can use XML storage for saving as well, though I'd recommend using what Madex referred to earlier, the SQL database.

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...