From acd03cc1248e6579f861cf3186bf935699bf2d17 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Sun, 26 Jun 2022 23:12:10 -0500 Subject: [PATCH] Remove veh extras for now (moving to separate table) --- scripts/server/vehicle.js | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/scripts/server/vehicle.js b/scripts/server/vehicle.js index b48a6f15..505efbf8 100644 --- a/scripts/server/vehicle.js +++ b/scripts/server/vehicle.js @@ -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;