Vlw pela ajuda , mas não entendi muito bem a lógica da troca de imagem , estou usando dxDraw separado do meu "botão".
dxDrawImage(x*1803, y*52, x*50, y*50, "img/play.png", 0, 0, 0, tocolor(255, 255, 255, 255))
dxDrawImage(x*1803, y*52, x*50, y*50, "img/pause.png", 0, 0, 0, tocolor(255, 255, 255, 255))
addEventHandler('onClientClick', root, function (button, state, _, _, _, _, _, element)
if button == 'left' and state == 'down' and sound then
if isMouseInPosition (x*1803, y*52, x*50, y*50) then
setSoundPaused(sound, true)
elseif isMouseInPosition (x*1803, y*52, x*50, y*50) then
setSoundPaused(sound, false)
end
end
end)
sound = playSound("msc/music.mp3")