Move vehicle load stuff to startup.js

This commit is contained in:
Vortrex
2022-04-26 10:19:32 -05:00
parent eb3c3e078e
commit 766135bb14

View File

@@ -9,12 +9,6 @@
function initVehicleScript() { function initVehicleScript() {
logToConsole(LOG_INFO, "[VRR.Vehicle]: Initializing vehicle script ..."); logToConsole(LOG_INFO, "[VRR.Vehicle]: Initializing vehicle script ...");
if(!getServerConfig().devServer) {
getServerData().vehicles = loadVehiclesFromDatabase();
}
spawnAllVehicles();
setAllVehicleIndexes();
logToConsole(LOG_INFO, "[VRR.Vehicle]: Vehicle script initialized successfully!"); logToConsole(LOG_INFO, "[VRR.Vehicle]: Vehicle script initialized successfully!");
return true; return true;
} }