Piorun Posted March 12, 2014 Share Posted March 12, 2014 Hi, Is this possible to get all gui elements from specific resource? I know its possible to get for ex. all objects from specific resource, but it is possible with guis? Link to comment
Piorun Posted March 12, 2014 Author Share Posted March 12, 2014 Noooo I found tricky function: https://wiki.multitheftauto.com/wiki/Ge ... GUIElement But anyway thanks for advice Link to comment
Karuzo Posted March 12, 2014 Share Posted March 12, 2014 Oh sorry, didn't read your question carefully. Link to comment
Moderators Citizen Posted March 12, 2014 Moderators Share Posted March 12, 2014 guiRoot? no, he said: from specific resource local guiTable = getElementChildren(getResourceGUIElement()) It will return all gui elements from the current resource but only the guis that doest have a parent specified when using guiCreateX functions. So if you want then to get the children (buttons/edits/etc that has a parent) use the getElementChildren as I did on the resource gui element. 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