villr Posted December 1, 2012 Share Posted December 1, 2012 Is there anyone that knows how to check if there is any gui open on the players screen? Or someone that knows how to make one special funciton for it? Link to comment
Guest Guest4401 Posted December 1, 2012 Share Posted December 1, 2012 You can make a function using these functions: Use getElementsByType in a for loop to check gui-window elements. Use guiGetVisible to check if its visible or not. Link to comment
villr Posted December 1, 2012 Author Share Posted December 1, 2012 Ohhh, thanks im going to test that, i'll come back with a result. Link to comment
villr Posted December 1, 2012 Author Share Posted December 1, 2012 function isAnyGuiVisible() for i,gui in ipairs(getElementsByType("gui-window")) do if ( guiGetVisible (gui) == true ) then outputChatBox("true") return true else outputChatBox("false") return false end end end This will only return me false Link to comment
Guest Guest4401 Posted December 1, 2012 Share Posted December 1, 2012 function isAnyGuiVisible() for i,v in ipairs(getElementsByType'gui-window') do if guiGetVisible(v) then return true end end return false end Link to comment
villr Posted December 1, 2012 Author Share Posted December 1, 2012 Thank you very mutch 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