Save veh positions + save payphones

This commit is contained in:
Vortrex
2023-02-25 04:43:54 -06:00
parent 920cfbd2ae
commit 896cb75591

View File

@@ -43,6 +43,7 @@ function saveServerDataToDatabase() {
}
try {
updateVehicleSavedPositions();
saveAllVehiclesToDatabase();
} catch (error) {
logToConsole(LOG_ERROR, `Could not save vehicles to database: ${error}`);
@@ -78,6 +79,12 @@ function saveServerDataToDatabase() {
logToConsole(LOG_ERROR, `Could not save gates to database: ${error}`);
}
try {
saveAllPayPhonesToDatabase();
} catch (error) {
logToConsole(LOG_ERROR, `Could not save payphones to database: ${error}`);
}
try {
saveServerConfigToDatabase();
} catch (error) {
@@ -113,6 +120,8 @@ function oneMinuteTimerFunction() {
logToConsole(LOG_DEBUG, `[V.RP.Event] Updating all player name tags`);
updateAllPlayerNameTags();
}
updateVehicleSavedPositions();
}
// ===========================================================================
@@ -121,7 +130,6 @@ function tenMinuteTimerFunction() {
//showRandomTipToAllPlayers();
//saveServerDataToDatabase();
//checkInactiveVehicleRespawns();
updateVehicleSavedPositions();
}
// ===========================================================================