StefanAlmighty Posted October 25, 2015 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
Saml1er Posted October 25, 2015 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:
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