Jump to content

chatsound


Guest

Recommended Posts

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