Move vehicle load stuff to startup.js
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user