Yunix Posted March 25, 2014 Share Posted March 25, 2014 So i have a function server side that is being triggered by an client sided function that's being started with the event "onClientRender". The problem is whenever i script in the server side and i make a mistake the server console spams that the server sided function is not there but that's because that script has an error and can not be started, so my question is, could the triggerServerEvent be stopped when it can't find the server sided function when it gets an error? Link to comment
Arnold-1 Posted March 25, 2014 Share Posted March 25, 2014 Actually no, and triggering server sided events from client side with onClientRender is so wrong, if there is 10 players in the server the event would trigger 300 times in a second, anyways make sure the second argument in addEvent is true Link to comment
WhoAmI Posted March 25, 2014 Share Posted March 25, 2014 Just use removeEventHandler to stop onClientRender event. Link to comment
Yunix Posted March 25, 2014 Author Share Posted March 25, 2014 Well, what's a better event for it then? It's for moving objects to a other dimension. Link to comment
WhoAmI Posted March 25, 2014 Share Posted March 25, 2014 Explain more. Tell us how it works and eventually put code. 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