Fixes for interior scene change

This commit is contained in:
Vortrex
2023-02-22 16:27:13 -06:00
parent 51194882c1
commit b9f47539a8

View File

@@ -565,6 +565,14 @@ function processPlayerEnteringExitingProperty(client) {
fadePlayerCamera(client, true, 1000);
}
updateInteriorLightsForPlayer(client, propertyData.interiorLights);
let radioStationIndex = propertyData.streamingRadioStationIndex;
if (radioStationIndex != -1) {
if (getRadioStationData(radioStationIndex)) {
playRadioStreamForPlayer(client, getRadioStationData(radioStationIndex).url);
getPlayerData(client).streamingRadioStation = radioStationIndex;
}
}
}, 1000);
if (getPlayerData(client).enteringExitingProperty[0] == V_PROPERTY_TYPE_BUSINESS) {
@@ -573,14 +581,6 @@ function processPlayerEnteringExitingProperty(client) {
}
}
let radioStationIndex = propertyData.streamingRadioStationIndex;
if (radioStationIndex != -1) {
if (getRadioStationData(radioStationIndex)) {
playRadioStreamForPlayer(client, getRadioStationData(radioStationIndex).url);
getPlayerData(client).streamingRadioStation = radioStationIndex;
}
}
getPlayerData(client).inProperty = [getPlayerData(client).enteringExitingProperty[0], getPlayerData(client).enteringExitingProperty[1]];
getPlayerData(client).enteringExitingProperty = null;
getPlayerData(client).pedState = V_PEDSTATE_READY;