Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Serwer:
- addCommandHandler("whatislove", function()
- triggerClientEvent(root, "PlaySong", root)
- end)
- -- Klient:
- function Sound()
- -- zmienna song przypisana do playSound:
- local song = playSound("http://alldev.eu/whatislove.mp3")
- -- Maksymalna głośność = 1
- setSoundVolume(song, 1)
- -- Maksymalny dystans = 100
- setSoundMaxDistance(song, 100)
- end
- addEvent("PlaySong", true)
- addEventHandler("PlaySong", getRootElement(), Sound)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement