Save veh positions + save payphones
This commit is contained in:
@@ -43,6 +43,7 @@ function saveServerDataToDatabase() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
updateVehicleSavedPositions();
|
||||||
saveAllVehiclesToDatabase();
|
saveAllVehiclesToDatabase();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logToConsole(LOG_ERROR, `Could not save vehicles to database: ${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}`);
|
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 {
|
try {
|
||||||
saveServerConfigToDatabase();
|
saveServerConfigToDatabase();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -113,6 +120,8 @@ function oneMinuteTimerFunction() {
|
|||||||
logToConsole(LOG_DEBUG, `[V.RP.Event] Updating all player name tags`);
|
logToConsole(LOG_DEBUG, `[V.RP.Event] Updating all player name tags`);
|
||||||
updateAllPlayerNameTags();
|
updateAllPlayerNameTags();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updateVehicleSavedPositions();
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
@@ -121,7 +130,6 @@ function tenMinuteTimerFunction() {
|
|||||||
//showRandomTipToAllPlayers();
|
//showRandomTipToAllPlayers();
|
||||||
//saveServerDataToDatabase();
|
//saveServerDataToDatabase();
|
||||||
//checkInactiveVehicleRespawns();
|
//checkInactiveVehicleRespawns();
|
||||||
updateVehicleSavedPositions();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user