Don't close all garages on client ready/start
This commit is contained in:
@@ -58,11 +58,10 @@ function addAllEventHandlers() {
|
|||||||
|
|
||||||
function onResourceStart(event, resource) {
|
function onResourceStart(event, resource) {
|
||||||
sendResourceStartedSignalToServer();
|
sendResourceStartedSignalToServer();
|
||||||
closeAllGarages();
|
//closeAllGarages();
|
||||||
|
|
||||||
if(getGame() == GAME_GTA_SA) {
|
if(getGame() == GAME_GTA_SA) {
|
||||||
gta.setDefaultInteriors(false);
|
gta.setDefaultInteriors(false);
|
||||||
gta.setCiviliansEnabled(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
garbageCollectorInterval = setInterval(collectAllGarbage, 1000*60);
|
garbageCollectorInterval = setInterval(collectAllGarbage, 1000*60);
|
||||||
@@ -78,7 +77,7 @@ function onResourceStop(event, resource) {
|
|||||||
|
|
||||||
function onResourceReady(event, resource) {
|
function onResourceReady(event, resource) {
|
||||||
sendResourceReadySignalToServer();
|
sendResourceReadySignalToServer();
|
||||||
closeAllGarages();
|
//closeAllGarages();
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user