Jump to content

Search the Community

Showing results for tags 'playsound3d'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 4 results

  1. حاب اضيف روابط تانيه يعني لما تخلص الأغنيه الأولى تشتغل الأغنيه التانيه ولما يخلص يرجع من الأول كود function onResourceStart() sound = playSound3D('https://g.top4top.io/m_1598i8jrg1.mp3', 144.89999, -1939.3, 3.5) setElementDimension(sound,0) setSoundMaxDistance(sound, 100) end addEventHandler("onClientResourceStart", resourceRoot, onResourceStart) addCommandHandler("sound", function () if isElement(sound) then destroyElement(sound) outputChatBox("تم اقاف الأغاني") end end) وشكرا
  2. Hello dear ! I'm trying to play some musics with the function 'playSound3D'. The sound URLs are provided to the function [ not files ]. So, that this musics are started to play according to the internet speed of the client. Some will start earlier than others. My problem is in stopping the sound. When current music ends, the next one should play. For that I need to know how long that the current sound will play. Therefore, how to return the left playtime of the sound?
  3. The essence of the script: The player enters the /say1 command and the sound is played inside the player. But when I enter this command, the sound does not play. There are no warnings and errors in the log. What could be the problem? Script: function say1(source) if (source) and x and y and z then local x,y,z = getElementPosition(source) if x and y and z then sound = playSound3D('say1.mp3',x,y,z) attachElements (sound,source) setSoundMaxDistance(sound,25) end end end addCommandHandler('say1',say1) meta.xml: <meta> <script src="say1.lua" type="server"/> -- tried type="client"- did not help <file src="say1.mp3" type="server"/> -- tried type="client" - did not help </meta> P.S.: Maybe, my english is not very good...
  4. Good'm creating a tuning shop for my RPG server. most did not want to use files files to decrease the MB script ... so I had the idea of creating music using random using playSound3D URL .. but I have two errors. ERROR 1 = Table does not work. ERROR 2 = He is not changing the interior or the size of the element. can anyone point me a correct direction or point out the error in my script? Client Sid local URLMusics = { {'https://albireo1.sscdn.co/palcomp3/2/a/b/9/equipeinsanos-tribo-da-periferia-mussoumano-convida-6ec60699.mp3'}, {'https://japeto.sscdn.co/palcomp3/a/5/4/a/equipeinsanos-tribodaperiferia-carro-velho-ec4211d7-e7b4a010.mp3'} } function ShowDxMenuStartTuning() addEventHandler("onClientRender", root, DXMenuPrincipal) showCursor(true) PainelMenuPrincipal = true MusicTuning() end addEvent("ShowPainelMenuStartTuning", true) addEventHandler("ShowPainelMenuStartTuning", getRootElement(), ShowDxMenuStartTuning) function MusicTuning() local randomize = math.random ( #URLMusics ) local TuningSound = playSound3D('URLMusics[randomize]',1383,-22,1001,true) setSoundMaxDistance(TuningSound,50) triggerServerEvent("StartSond", root, TuningSound) end Server Sid DIMS___ = 1 function DimensionSond(TuningSound) setElementDimension(TuningSound,DIMS___) setElementInterior(TuningSound,1) setElementPosition(TuningSound,1383,-22,1001) DIMS___ = DIMS___ + 1 end addEvent("StartSond", true) addEventHandler("StartSond", getRootElement(), DimensionSond)
×
×
  • Create New...