FWCentral Posted September 21, 2011 Posted September 21, 2011 Hey all, if there any function that checks if ANY gui windows are open?
MTA Team qaisjp Posted September 21, 2011 MTA Team Posted September 21, 2011 Nope. but you could loop all gui elements and do guigetvisible function isWindowShowing() local lol = false for i,v in pairs(getElementsByType("gui-window")) end if guiGetVisible(v)==true then lol = true end end end UNTESTED
TAPL Posted September 21, 2011 Posted September 21, 2011 function isWindowShowing() lol = false for i,v in pairs(getElementsByType("gui-window")) do if (guiGetVisible(v) == true) then lol = true end end return lol end
MTA Team qaisjp Posted September 21, 2011 MTA Team Posted September 21, 2011 Yeah! I forgot to put return. Stupidomeh thx for the fix TAPL and thanks you FWCentral
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