What happens when you use playlooped instead of play?
That script identifies what NPC is stopping it from playing. Might benefit from echo'ing the NPCs id, name and joinedclasses if it has any as well.
Can also try this test:
PHP Code:
//#CLIENTSIDE
function onCreated() {
music();
test();
}
function music() {
stopmusic();
play("http://GraalEra.com/personal/LoveMyGang.mp3");
sleep(1);
}
function test() {
for (temp.wep: player.weapons) {
if (temp.wep != this) {
temp.wep.trigger("PlayerEnters", "");
sleep(0.2);
if (!ismusicplaying()) {
echo("music stopped playing after onPlayerEnters was called in " @ temp.wep.name);
music();
}
}
}
}