Remove veh extras for now (moving to separate table)

This commit is contained in:
Vortrex
2022-06-26 23:12:10 -05:00
parent 69dc299621
commit acd03cc124

View File

@@ -126,21 +126,21 @@ class VehicleData {
this.livery = toInteger(dbAssoc["veh_livery"]);
// Extras (components on SA, extras on IV+)
this.extras = [
toInteger(dbAssoc["veh_extra1"]),
toInteger(dbAssoc["veh_extra2"]),
toInteger(dbAssoc["veh_extra3"]),
toInteger(dbAssoc["veh_extra4"]),
toInteger(dbAssoc["veh_extra5"]),
toInteger(dbAssoc["veh_extra6"]),
toInteger(dbAssoc["veh_extra7"]),
toInteger(dbAssoc["veh_extra8"]),
toInteger(dbAssoc["veh_extra9"]),
toInteger(dbAssoc["veh_extra10"]),
toInteger(dbAssoc["veh_extra11"]),
toInteger(dbAssoc["veh_extra12"]),
toInteger(dbAssoc["veh_extra13"]),
];
//this.extras = [
// toInteger(dbAssoc["veh_extra1"]),
// toInteger(dbAssoc["veh_extra2"]),
// toInteger(dbAssoc["veh_extra3"]),
// toInteger(dbAssoc["veh_extra4"]),
// toInteger(dbAssoc["veh_extra5"]),
// toInteger(dbAssoc["veh_extra6"]),
// toInteger(dbAssoc["veh_extra7"]),
// toInteger(dbAssoc["veh_extra8"]),
// toInteger(dbAssoc["veh_extra9"]),
// toInteger(dbAssoc["veh_extra10"]),
// toInteger(dbAssoc["veh_extra11"]),
// toInteger(dbAssoc["veh_extra12"]),
// toInteger(dbAssoc["veh_extra13"]),
//];
// Vehicle Attributes
this.locked = intToBool(toInteger(dbAssoc["veh_locked"]));
@@ -292,6 +292,7 @@ function saveVehicleToDatabase(vehicleDataId) {
["veh_int", toInteger(tempVehicleData.interior)],
["veh_vw", toInteger(tempVehicleData.dimension)],
["veh_livery", toInteger(tempVehicleData.livery)],
["veh_radio_station", toInteger(getRadioStationData(tempVehicleData.radioStation).databaseId)],
];
let dbQuery = null;