Jump to content

Help with GUI


villr

Recommended Posts

Posted

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? :roll:

Posted
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 :/

Guest Guest4401
Posted
function isAnyGuiVisible() 
    for i,v in ipairs(getElementsByType'gui-window') do 
        if guiGetVisible(v) then 
            return true 
        end 
    end 
    return false 
end 

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