enzopaul4 Posted October 22, 2016 Share Posted October 22, 2016 function playThatSound() local sound = playSound("resources/christmasde.mp3") setSoundVolume(sound, 0.5) end addEventHandler("onClientResourceStart", root, playThatSound) Prima data a mers , dar acum nu mai merge. Intru pe server si nu se aude nimic. Link to comment
Simple0x47 Posted October 22, 2016 Share Posted October 22, 2016 Incearca: SERVER: function sendToHim( ) triggerClientEvent( source, "onPlayThatSound", source ) end addEventHandler("onPlayerJoin", root, sendToHim) CLIENT: addEvent("onPlayThatSound", true) function playThatSound() local sound = playSound("resources/christmasde.mp3") setSoundVolume( sound, 0.5 ) end addEventHandler("onPlayThatSound", root, playThatSound) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now