جرب ذذ
function stopAllSounds()
stopSound(sound1)
stopSound(sound2)
stopSound(sound3)
end
function onImageClick()
if source == policeImage then
triggerServerEvent("setTeam", localPlayer, "police")
stopAllSounds()
sound1 = playSound("1.mp3")
elseif source == groveImage then
triggerServerEvent("setTeam", localPlayer, "grove")
stopAllSounds()
sound2 = playSound("2.mp3")
elseif source == ballasImage then
triggerServerEvent("setTeam", localPlayer, "ballas")
stopAllSounds()
sound3 = playSound("3.mp3")
end