Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/03/24 in all areas

  1. addEventHandler("onClientSoundStopped", resourceRoot, function(reason) local soundtrack = playlist[math.random(#playlist)] if reason == "destroyed" then playSound(soundtrack[1], false) elseif reason == "finished" then playSound(soundtrack[1], false) elseif reason == "paused" then playSound(soundtrack[1], false) end outputChatBox("Agora você está escutando: " .. soundtrack[2]) end)
    1 point
  2. local sound = playSound("https://upload.wikimedia.org/wikipedia/commons/0/0d/Hino-Nacional-Brasil-instrumental-mec.ogg", false) addEventHandler("onClientRender", root, function() for i, v in pairs(getElementsByType("sound", resourceRoot)) do if getSoundPosition(v) >= getSoundLength(v) - 10 then setSoundVolume(v, getSoundVolume(v) - 0.005) end end end)
    1 point
×
×
  • Create New...