Fix radio not changed when entering vehicle

This commit is contained in:
Sardelka
2022-06-19 11:22:45 +08:00
parent 1a66f14bae
commit 2a093d1da0

View File

@ -183,7 +183,7 @@ namespace RageCoop.Client
{ {
SyncedPed c = Passengers[seat]; SyncedPed c = Passengers[seat];
if (c?.ID==Main.LocalPlayerID && (RadioStation!=_lastRadioIndex)) if (c?.ID==Main.LocalPlayerID && (RadioStation!=Function.Call<int>(Hash.GET_PLAYER_RADIO_STATION_INDEX)))
{ {
Util.SetPlayerRadioIndex(RadioStation); Util.SetPlayerRadioIndex(RadioStation);
} }