Fantanic Posted December 18, 2013 Share Posted December 18, 2013 Hello , I'm using this script for a while and now i want to safe the colors but i cant find anyway how to safe it. And i also want to safe the upgrades. (this script am i using https://community.multitheftauto.com/in ... ls&id=6194) EDIT i mean with colors adding 2 colors to the police car like its blue and yellow also a color of their lights Greetings Link to comment
xXMADEXx Posted December 18, 2013 Share Posted December 18, 2013 Best way to save it would be to use an SQLite Databse. functions: -- Database Functions -- dbConnect dbQuery dbExec dbPoll -- Vehicles -- getElementPosition getElementModel getVehicleColor getVehicleUpgrades Link to comment
Fantanic Posted December 18, 2013 Author Share Posted December 18, 2013 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? Link to comment
PaiN^ Posted December 18, 2013 Share Posted December 18, 2013 setVehicleColor -- r2, g2, b2 And for the saving, you can use Account Data : setAccountData getAccountData I find it much easier . Link to comment
myonlake Posted December 19, 2013 Share Posted December 19, 2013 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
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