Despawn all elements util + starting state
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function initServerScripts() {
|
function initServerScripts() {
|
||||||
|
serverStarting = true;
|
||||||
checkForAllRequiredModules();
|
checkForAllRequiredModules();
|
||||||
|
|
||||||
initDatabaseScript();
|
initDatabaseScript();
|
||||||
@@ -50,13 +51,14 @@ function initServerScripts() {
|
|||||||
setAllServerDataIndexes();
|
setAllServerDataIndexes();
|
||||||
|
|
||||||
checkServerGameTime();
|
checkServerGameTime();
|
||||||
spawnAllServerElements();
|
|
||||||
addAllNetworkEventHandlers();
|
addAllNetworkEventHandlers();
|
||||||
addAllCommandHandlers();
|
addAllCommandHandlers();
|
||||||
initAllClients();
|
initAllClients();
|
||||||
initTimers();
|
initTimers();
|
||||||
|
|
||||||
serverStartTime = getCurrentUnixTimestamp();
|
serverStartTime = getCurrentUnixTimestamp();
|
||||||
|
serverStarting = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
@@ -196,6 +198,23 @@ function spawnAllServerElements() {
|
|||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
|
function despawnAllServerElements() {
|
||||||
|
//despawnAllBusinessPickups();
|
||||||
|
//despawnAllBusinessBlips();
|
||||||
|
//despawnAllHousePickups();
|
||||||
|
//despawnAllHouseBlips();
|
||||||
|
//despawnAllJobPickups();
|
||||||
|
//despawnAllJobBlips();
|
||||||
|
//despawnAllGroundItemObjects();
|
||||||
|
despawnAllVehicles();
|
||||||
|
despawnAllNPCs();
|
||||||
|
|
||||||
|
// Using client-side spheres since server-side ones don't show on GTAC atm (bug)
|
||||||
|
//createAllJobRouteLocationMarkers();
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
initServerScripts();
|
initServerScripts();
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
Reference in New Issue
Block a user