Jump to content

More GUI problems


Recommended Posts

Posted

Hey guys, I've made a panel when a player clicks on another player it will open the panel. The problem is that before the player logged in the login GUI comes up and when a player clicks on the login edit the player panel comes up but it doesn't have any information because the player has not yet logged in, How can i stop the player panel GUI from showing if the user is not logged in?

Or is there any way to check if a gui window is already open? -- this would be better for what i need. (not just this)

Posted

It's a GUI that shows when you click on a player, I can't seem to reproduce the error now but it happened when a player tried to click on the Login GUI and the player GUI came up because the player is behind the gui,

Here is another example with a different GUI:

5343f8.png

This is why checking if any GUI window is open it would be better i think.

Posted

With the guiGetVisible i need to use a gui argument don't i? I want to check if any window is open and yeah but then i would still have the error shown in the image.

Posted
I want to check if any window is open.
for _,gui in ipairs(getElementsByType("gui-window")) do 
if guiGetVisible(gui) then 
.. 
end 
end 

Posted

I still have the problem this is what i added:

  
for _,gui in ipairs(getElementsByType("gui-window")) do 
if guiGetVisible(gui) == true then 
else 
  

For some reason the GUI still shows when i open another GUI then try to open it.

Posted
I still have the problem this is what i added:
  
for _,gui in ipairs(getElementsByType("gui-window")) do 
if guiGetVisible(gui) == true then 
else 
  

For some reason the GUI still shows when i open another GUI then try to open it.

We can't help you if you didn't post the code

also this make no sense

  
for _,gui in ipairs(getElementsByType("gui-window")) do 
if guiGetVisible(gui) == true then 
else 
  

also you can use this to move the gui to very back of all other GUI

https://wiki.multitheftauto.com/wiki/GuiMoveToBack

Posted

Never mind ill just put up with it. Another thing i want to know is, I changed the element data client side from a GUI then when the player quits i save it server side and then when a player logs in it should set the data server side, It works fine for everything else but this for some reason the thing i change from the GUI doesn't save :P

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