Drakath Posted March 9, 2014 Share Posted March 9, 2014 ERROR: Client (username) triggered serverside event onGUIPrivateMessage, but event is not added serverside addEvent("onGUIPrivateMessage", true) addEventHandler("onGUIPrivateMessage", getRootElement(), function(toplayer, text) triggerClientEvent(toplayer, "onPrivateChatSent", source, source, text) end ) I added the event. Why does it say that it is not added? Link to comment
Karuzo Posted March 9, 2014 Share Posted March 9, 2014 How are you triggering onGUIPrivateMesage ? Link to comment
Drakath Posted March 9, 2014 Author Share Posted March 9, 2014 triggerServerEvent("onGUIPrivateMessage", getLocalPlayer(), ply,newText) Link to comment
Moderators Citizen Posted March 9, 2014 Moderators Share Posted March 9, 2014 The event is not added because you have an error in this script file so it couldn't be loaded or because you didn't add this script in the meta.xml 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