Search the Community
Showing results for tags 'playsound'.
-
Olá estou criando um servidor, e a um tempo atrás vi um servidor que o dono executava um comando e todos do servidor escutava um som, achei interessante e queria pro meu servidor, queria uma ajuda para poder fazer isso.
-
Boa noite rapaziada, bom eu to fazendo um painel login e adicionei 3 musicas que tocam aleatoriamente em uma tabela nomeada (Tab_Musicas), no entanto ao player entrar na tela de login eu gostaria que aparecesse o nome da musica a qual esta tocando! E é ai que entra minha duvida. Como eu poderia estar especificando em um dxDrawText qual musica esta tocando no momento? Linhas de código abaixo: Tabela: local Tab_Musicas = {"musicas/musica1.mp3", "musicas/musica2.mp3", "musicas/musica3.mp3"} Momento em que a musica se inicia: function onClientResourceStart() fadeCamera(true, 5) setCameraMatrix(1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) sound = playSound(Tab_Musicas[math.random(1, #Tab_Musicas)], false) ... Print do P/Login, no estado atual (a musica se encontra no canto superior direito):
- 2 replies
-
- loginpanel
- playsound
-
(and 1 more)
Tagged with:
-
function asdasdsas() playSound("http://www.convertmp3.io/fetch/?video=https://www.youtube.com/watch?v=iq7q82Cd6RI") end addCommandHandler("test",asdasdsas) what wrong? the API working fine, but the playSound not.. how to fix?
-
I want make a script, which plays sound from youtube.. But.. there is no one converter which would work.. How to use a converter as sound player? Anyone can help?? Sorry for my bad english..
-
I want create a sound requester script, but how to convert yt link to mp3 with script? Sorry for my very bad english.
-
Hello, i made a script that plays winning.mp3 and shows a message in chat after a player killed another player but i dont know if this will work - will this work ? function wasted (killer, weapon, bodypart) local killer = attacker() local sound = playSound("sounds/winning.mp3") local message = outputChatBox ( #006600• #ffffff"..getPlayerName ( attacker ).." #006600is dangerous!" ) setSoundVolume(sound, 0.5) end addEventHandler("onClientPlayerWasted", localPlayer, wasted)
-
Hey , how i can to play sound for driver only ? this is my code , i tried to make but i failed and i need some help : function helicopter () if ( isPedInVehicle ( localPlayer ) == false ) then return false end local vehicle = getPedOccupiedVehicle(getLocalPlayer()) if vehicle then if ( policeVehicles[getElementModel ( vehicle )] ) then local maxfuel = tonumber(getElementData(vehicle, "maxfuel")) or 0; local fuels = math.floor(tonumber(getElementData(getElementData(vehicle, "parent"), "fuel"))) or 0; if fuels <=5 then sound = playSound("sound/beep.mp3" , true) setSoundVolume(sound, 0.1) setSoundSpeed ( sound, 0.9 ) outputChatBox ( "#FF0000Alarm ! #FFFFFFLow fuel ! Press ' Z ' to stop the alarm.", 255, 255, 255, true ) bindKey ( "Z", "down", stopMySoundB ) addEventHandler ( "onClientVehicleExit", root, stopMySoundV ) killTimer(aMyTimer) end end end end aMyTimer = setTimer( helicopter, 5000,0)