Maurize Posted November 23, 2011 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?
unknooooown Posted November 23, 2011 Posted November 23, 2011 addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()), ..
Aibo Posted November 23, 2011 Posted November 23, 2011 predefined global variable resourceRoot contains current resource root element, so no need to call 2 functions: addEventHandler("onClientResourceStart", resourceRoot, ..
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