Disable ambience on enter/exit property

This commit is contained in:
Vortrex
2021-01-05 01:24:35 -06:00
parent ceb7db95b1
commit ea1a9214e9

View File

@@ -129,6 +129,7 @@ function enterExitPropertyCommand(command, params, client) {
}
meActionToNearbyPlayers(client, "opens the door and exits the house");
fadeCamera(client, false, 1.0);
disableCityAmbienceForPlayer(client);
setTimeout(function() {
setPlayerPosition(client, inHouse.entrancePosition);
setPlayerHeading(client, inHouse.entranceRotation);
@@ -143,7 +144,6 @@ function enterExitPropertyCommand(command, params, client) {
}, 1000);
}, 1100);
removeEntityData(client, "ag.inHouse");
}
return true;
}
@@ -157,6 +157,7 @@ function enterExitPropertyCommand(command, params, client) {
}
meActionToNearbyPlayers(client, "opens the door and exits the business");
fadeCamera(client, false, 1.0);
disableCityAmbienceForPlayer(client);
setTimeout(function() {
setPlayerPosition(client, inBusiness.entrancePosition);
setPlayerHeading(client, inBusiness.entranceRotation);
@@ -227,7 +228,6 @@ function enterExitPropertyCommand(command, params, client) {
meActionToNearbyPlayers(client, "opens the door and enters the house");
fadeCamera(client, false, 1.0);
disableCityAmbienceForPlayer(client);
setTimeout(function() {