Why triggering?
function startscript( )
menopeli34 = createObject(5837, 0, 0, 100, 0, 0, 0)
end
addEventHandler ( "onClientResourceStart", getRootElement(), startscript)
function menomusa (menopeli34, radio)
if menopeli34 and radio then
local x,y,z = getElementPosition ( menopeli34 )
radio = playSound3D( "https://dl.dropboxusercontent.com/s/9z9n7oez2d55xif/amispoppia_-_waves-hZ35j1c6BJw_fmt34.mp3", x, y, z, true)
attachElements ( radio, menopeli34 )
setSoundMaxDistance( radio, 200 )
outputChatBox ( "music is on!", source, 255, 0, 0, true )
else
outputChatBox ( "cant find the menopeli and radio", getRootElement(), 255, 0, 0, true )
end
end
addCommandHandler ( "startTheMusic", menomusa )
function stopSound( )
stopSound(radio)
end
addCommandHandler ( "stopTheMusic", stopSound )