Jump to content

Join Sound Help ?


roddydennvor

Recommended Posts

--Server-side 
      
    function triggerSound() 
        triggerClientEvent(v,"playBeep",v) 
    end 
      
    addEventHandler("onPlayerLogin", root, triggerSound) 
      
    --Client-side 
      
    function playBeep() 
        playSound("beep.mp3",false) 
    end 
      
    addEvent("playBeep",true) 
    addEventHandler("playBeep",root,playBeep) 

Link to comment
function triggerSound() 
    triggerClientEvent(v,"playBeep",v) 
end 

Why did you use "v"?

function triggerSound() 
    triggerClientEvent(source,"playBeep",resourceRoot) 
end 

That's for me to know and you to figure out!

But really, this is exactly why copy-pasting code is a bad idea. :oops:

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...