Jump to content

How do I change resource responsible for an element?


Adolf_T

Recommended Posts

Alright so I have a function in resource A which is exported, that function creates a guiElement which is then returned once called, in resource B I call this function and get a reference to the guiElement. So far it works, but when I restart resource A the element disappears, apparently resource A is still the owner so I was wondering if there's any way to change the resource responsible for an element. i.e create an element in resource A then let resource B take control over it. How do I do that?

Link to comment

I really doubt that that's possible. The only way I could think of would be using setElementParent but on its wiki page it explicitly says: "This function does not change when an element will be destroyed - Elements are always destroyed when the resource that created them is stopped.

So I don't think so.

Link to comment

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...