Skip to content

Fix #2349 (Interiors lack radio) - #2354

Merged
TheNormalnij merged 4 commits into
multitheftauto:masterfrom
lopezloo:fix/2349
Jan 4, 2022
Merged

TheNormalnij merged 4 commits into
multitheftauto:masterfrom
lopezloo:fix/2349

Conversation

@lopezloo

@lopezloo lopezloo commented Sep 14, 2021 •

Copy link
Copy Markdown
Member

This PR fixes radio in interiors (audio zones) does not work (#2349).

Since MTA disables GTA handling of radio and reimplements radio station switching, radio in interiors doesn't work. I have created hook into function which is supposed to switch station when player enter or leave audio zone to make it working great again.

It can be disabled by using setInteriorSoundsEnabled.

@lopezloo lopezloo added the bug Something isn't working label Sep 14, 2021
@TheNormalnij

Copy link
Copy Markdown
Contributor

Works for me. Interior radio can be disabled by setRadioChannel function. Code looks pretty enough. I think we can merge this

@TheNormalnij
TheNormalnij merged commit e573959 into multitheftauto:master Jan 4, 2022
@Dutchman101

Copy link
Copy Markdown
Member

The crash from issue #2621 may have resulted from this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants