zixxonx Posted November 4, 2013 Share Posted November 4, 2013 local function playerChat(message, messageType) if getElementData ( source, "tempdata.mute" ) == true then if messageType == 0 then cancelEvent() end end end addEventHandler("onPlayerChat", root, playerChat) it wont to hide the message, i tested and it should work. also this ownt work local function playerChat(message) cancelEvent() end addEventHandler("onPlayerChat", root, playerChat) why? Link to comment
pa3ck Posted November 4, 2013 Share Posted November 4, 2013 Its server side, do you have that in your meta.xml? Link to comment
zixxonx Posted November 4, 2013 Author Share Posted November 4, 2013 That's server side and i have that file in my meta Link to comment
pa3ck Posted November 4, 2013 Share Posted November 4, 2013 Remove 'local' before the function name Link to comment
zixxonx Posted November 4, 2013 Author Share Posted November 4, 2013 i already did it but in still wont work Link to comment
TAPL Posted November 4, 2013 Share Posted November 4, 2013 You might have other resource that use outputChatBox combined with onPlayerChat. A known resource do this is freeroam. 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