Jump to content

Any way to override MTA default chatbox messages?


Lestat

Recommended Posts

addEventHandler("onPlayerChat",root,function() 
cancelEvent() 
end) 
-- cancels every message a player makes 
  
-- you can also try this (but i didn't try to do it before) 
  
addEventHandler("onChatMessage",root,function() 
cancelEvent() 
end) 
 -- disables every single message of a player or used with outputChatBox 
  

Link to comment

You're right Tomas, it is in the admin resource, gonna make my own Admin Panel, so it won't be needed to catch it.

Also very helpful information John Smith. It will be very useful for another thing I wanna do.

Thank you both.

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