I have some code that runs PrepareMusicEvent and TriggerMusicEvent, sometimes it will play the music and sometimes it just plays the start of it and nothing else.
Here is the command I have created for the arena war music, could there be another native conflicting with this somewhere?
RegisterCommand("playarenamusic", function()
local awLobbyMusic = "AW_LOBBY_MUSIC_START"
PrepareMusicEvent(awLobbyMusic)
TriggerMusicEvent(awLobbyMusic)
end, false)
I also have this command for stopping the music, not sure if this music event is correct but when it works it does stop the music from playing
RegisterCommand("stopmusic", function()
TriggerMusicEvent("MP_MC_CMH_IAA_FINALE_START")
end, false)