Adolf_T Posted March 4, 2017 Share Posted March 4, 2017 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
MIKI785 Posted March 5, 2017 Share Posted March 5, 2017 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
Ayush Rathore Posted March 5, 2017 Share Posted March 5, 2017 well you should combine the two resources if it don't make your work difficult 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