StefanAlmighty Posted October 25, 2015 Share Posted October 25, 2015 Okay so when I try to trigger this client side: triggerServerEvent("unlockTheProperty", resourceRoot, theProperty, thePlayer) I get this issue in the console: ERROR: Client (Stefan) triggered serverside event unlockTheProperty, but event is not added serverside Serverside: addEvent ("unlockTheInterior",true) addEventHandler ("unlockTheInterior",root, function (targetProperty, targetPlayer) outputChatBox("To be continued..") end) And yes, the both the server and client scripts are added in meta.xml Link to comment
Saml1er Posted October 25, 2015 Share Posted October 25, 2015 Because event is triggered before event handler is added. Its your meta.xml. You are loading client file before server side and that's why it happens. Do it like this: Link to comment
StefanAlmighty Posted October 25, 2015 Author Share Posted October 25, 2015 Fixed, thank you very much. 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