Fix for radio station when entering vehicle
This commit is contained in:
@@ -351,7 +351,7 @@ async function onPlayerEnteredVehicle(client, clientVehicle, seat) {
|
|||||||
|
|
||||||
if(getVehicleData(vehicle).streamingRadioStation != -1) {
|
if(getVehicleData(vehicle).streamingRadioStation != -1) {
|
||||||
if(getPlayerData(client).streamingRadioStation != getVehicleData(vehicle).streamingRadioStation) {
|
if(getPlayerData(client).streamingRadioStation != getVehicleData(vehicle).streamingRadioStation) {
|
||||||
playRadioStreamForPlayer(client, radioStations[getVehicleData(vehicle).streamingRadioStation].url, true, getPlayerStreamingRadioVolume(client));
|
playRadioStreamForPlayer(client, getServerData().radioStations[getVehicleData(vehicle).streamingRadioStation].url, true, getPlayerStreamingRadioVolume(client));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user