Jump to content

worldmusic system cant load media


Recommended Posts

The Error is

BASS ERROR 2 in LoadMedia path:C:\Program Files\MTA San Andreas 1.3\mods\deathmatch\resources\worldmusic-system\time-to-say-goodbye 3d:0 loop:0

ClientSide:

function soundplayer(soundname) 
    if (thesound) then 
        stopSound(thesound) 
    end 
    thesound = playSound(soundname, false) 
    setSoundVolume(thesound, 0.5) 
end 
addEvent("onClientPlayMP3", true) 
addEventHandler("onClientPlayMP3", getRootElement(), soundplayer) 
  
  
--Volume Controls 
function louder() 
    outputChatBox("MP3 Volume is at Max.", source) 
    setSoundVolume(thesound, 1.0) 
end 
addCommandHandler("mp3up", louder) 
  
function quieter() 
    outputChatBox("MP3 volume now at 25%", source) 
    setSoundVolume(thesound, 0.25) 
end 
addCommandHandler("mp3down", quieter) 
  
function stfu() 
    outputChatBox("MP3 now stopped.", source) 
    stopSound(thesound) 
end 
addCommandHandler("musicoff", stfu) 
addEvent("onClientStopMP3", true) 
addEventHandler("onClientStopMP3", getRootElement(), stfu) 

ServerSide:

function playthatsound(sourcePlayer, command, song) 
    if (exports.global:isPlayerHeadAdmin(sourcePlayer)) then 
        --local thesong = soundname .. ".mp3" 
        local soundname = song  
        triggerClientEvent( "onClientPlayMP3", getRootElement(), soundname) 
    end 
end 
addCommandHandler("playmp3", playthatsound) 
  
function stfuserver(sourcePlayer, command) 
    if (exports.global:isPlayerHeadAdmin(sourcePlayer)) then 
        triggerClientEvent( "onClientStopMP3", getRootElement()) 
    end 
end 
addCommandHandler("stopmp3", stfuserver) 

Link to comment
The Error is

BASS ERROR 2 in LoadMedia path:C:\Program Files\MTA San Andreas 1.3\mods\deathmatch\resources\worldmusic-system\time-to-say-goodbye 3d:0 loop:0

ClientSide:

function soundplayer(soundname) 
    if (thesound) then 
        stopSound(thesound) 
    end 
    thesound = playSound(soundname, false) 
    setSoundVolume(thesound, 0.5) 
end 
addEvent("onClientPlayMP3", true) 
addEventHandler("onClientPlayMP3", getRootElement(), soundplayer) 
  
  
--Volume Controls 
function louder() 
    outputChatBox("MP3 Volume is at Max.", source) 
    setSoundVolume(thesound, 1.0) 
end 
addCommandHandler("mp3up", louder) 
  
function quieter() 
    outputChatBox("MP3 volume now at 25%", source) 
    setSoundVolume(thesound, 0.25) 
end 
addCommandHandler("mp3down", quieter) 
  
function stfu() 
    outputChatBox("MP3 now stopped.", source) 
    stopSound(thesound) 
end 
addCommandHandler("musicoff", stfu) 
addEvent("onClientStopMP3", true) 
addEventHandler("onClientStopMP3", getRootElement(), stfu) 

ServerSide:

function playthatsound(sourcePlayer, command, song) 
    if (exports.global:isPlayerHeadAdmin(sourcePlayer)) then 
        --local thesong = soundname .. ".mp3" 
        local soundname = song  
        triggerClientEvent( "onClientPlayMP3", getRootElement(), soundname) 
    end 
end 
addCommandHandler("playmp3", playthatsound) 
  
function stfuserver(sourcePlayer, command) 
    if (exports.global:isPlayerHeadAdmin(sourcePlayer)) then 
        triggerClientEvent( "onClientStopMP3", getRootElement()) 
    end 
end 
addCommandHandler("stopmp3", stfuserver) 

Fixed it you needed to do /mp3play time_to_say_goodbye.mp3

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...