Jump to content

One little Question


Maurize

Recommended Posts

Posted

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?

Posted

predefined global variable resourceRoot contains current resource root element, so no need to call 2 functions:

addEventHandler("onClientResourceStart", resourceRoot, .. 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...