Guest Posted June 13, 2018 Share Posted June 13, 2018 (edited) What is wrong with this resource: Client: function playSonido() local sound = playSound("chat.mp3",false) setSoundVolume(sound, 0.9) end addEvent("sonido",true) addEventHandler("sonido",getRootElement(),playSonido) Server: function chat (thePlayer) triggerClientEvent("sonido",getRootElement()) end addEventHandler ( "onPlayerChat", getRootElement(), chat ) Meta: <meta> <info description="Chat sound" author="Hyper" version="5.0" type="script" /> <script src="client.lua" type="client" /> <script src="server.lua" type="client" /> <file src="chat.mp3" /> </meta> Edited June 13, 2018 by Guest Link to comment
Moderators Patrick Posted June 13, 2018 Moderators Share Posted June 13, 2018 <script src="server.lua" type="client" /> TO <script src="server.lua" type="server" /> 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