Maurize Posted November 23, 2011 Share Posted November 23, 2011 Yeah its kinda nooby but i can't find any information to this... look: addEventHandler( "onClientResourceStart", getRootElement(), .. this eventHandler makes the resource where the handler is localized restarting every time an other starts or anything. How to fix that the resource doesnt restart if another does? Link to comment
unknooooown Posted November 23, 2011 Share Posted November 23, 2011 addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()), .. Link to comment
Maurize Posted November 23, 2011 Author Share Posted November 23, 2011 yeah, that was it thanks!! Link to comment
Aibo Posted November 23, 2011 Share Posted November 23, 2011 predefined global variable resourceRoot contains current resource root element, so no need to call 2 functions: addEventHandler("onClientResourceStart", resourceRoot, .. 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