Jump to content

[HELP] Speaker music distance


HeK

Recommended Posts

Hey guys, i have this 3D Speaker script and it's working perfectly, it plays a radio.

Now the problem is the distance, players can only listen to it when they are really close to the speaker, how do i change that?

--local url = "rackcity.mp3" 
local url = "http://www.181.fm/winamp.pls?station=181-power&style=mp3&description=Power%20181%20(Top%2040)&file=181-power.pls" 
  
function playTheSound(x, y, z, vehicle) 
    sound = playSound3D(url, x, y, z) 
    if (isElement(vehicle)) then attachElements(sound, vehicle) end 
end 
addEvent("playTheSound", true) 
addEventHandler("playTheSound", root, playTheSound) 
  
function stopTheSound(x, y, z) 
    stopSound(sound) 
end 
addEvent("stopTheSound", true) 
addEventHandler("stopTheSound", root, stopTheSound) 
  
-- 181 FM: [url=http://www.181.fm/winamp.pls?station=181-power&style=mp3&description=Power%20181%20(Top%2040]http://www.181.fm/winamp.pls?station=18 ... 0(Top%2040[/url])&file=181-power.pls 
-- The Hitz channel: [url=http://www.in.com/music/radio/977-the-hitz-channel-15.html]http://www.in.com/music/radio/977-the-h ... el-15.html[/url] 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...