Advertisement
Shiny_

Client

Sep 9th, 2013
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. function Client_Play_Sound(url)
  2.     local sound = playSound(url)
  3.     setSoundVolume(sound, 0.5)
  4. end
  5. addEvent("Client_Play_Sound", true)
  6. addEventHandler("Client_Play_Sound", getRootElement(), Client_Play_Sound)
  7.  
  8. function Client_Stop_Sound()
  9.     stopSound(sound)
  10. end
  11. addEvent("Client_Stop_Sound", true)
  12. addEventHandler("Client_Stop_Sound", getRootElement(), Client_Stop_Sound)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement