Check if player int and vw are in main world before radio
This commit is contained in:
@@ -654,6 +654,7 @@ async function onPlayerSpawn(client) {
|
|||||||
stopRadioStreamForPlayer(client);
|
stopRadioStreamForPlayer(client);
|
||||||
|
|
||||||
// Start playing business/house radio if in one
|
// Start playing business/house radio if in one
|
||||||
|
if (getPlayerCurrentSubAccount(client).interior != getGameConfig().mainWorldInterior || getPlayerCurrentSubAccount(client).dimension != getGameConfig().mainWorldDimension) {
|
||||||
let businessId = getPlayerBusiness(client);
|
let businessId = getPlayerBusiness(client);
|
||||||
let houseId = getPlayerHouse(client);
|
let houseId = getPlayerHouse(client);
|
||||||
if (businessId != -1) {
|
if (businessId != -1) {
|
||||||
@@ -665,6 +666,7 @@ async function onPlayerSpawn(client) {
|
|||||||
playRadioStreamForPlayer(client, getRadioStationData(getHouseData(houseId).streamingRadioStation).url, true, getPlayerStreamingRadioVolume(client), null);
|
playRadioStreamForPlayer(client, getRadioStationData(getHouseData(houseId).streamingRadioStation).url, true, getPlayerStreamingRadioVolume(client), null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
resetPlayerBlip(client)
|
resetPlayerBlip(client)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user