Jump to content

[HELP] How to hide window?


Ramsey

Recommended Posts

Posted

Hello Guys, I need a help :D

My wish is to hide the gui window but keep the button in the gui window in place

 

Code:

wElement = guiCreateWindow(0,0,300,300,"My Window", false)
exports.global:centerWindow(wElement)

tabPanel = guiCreateTabPanel ( 0, 0.04, 1, 1, true, myWindow )
myTab = guiCreateTab( "TEST TAB", tabPanel )


guiSetAlpha(wElement, 0)
        
for _, v in ipairs(getElementChildren(wElement)) do
  -- GUİ Elements
  guiSetAlpha(v, 0.9) -- Not work do this.
  
end

 

Sorry : I am a bad english.

My goal is to convert the gui to dx with triggetEvent. The server that makes this one OwlGaming

Posted
1 minute ago, Ramsey said:

My wish is to hide the windows but not to hide the things inside the window.

don't attach them to window

Posted

A normal script:

win = guiCreateWindow(0,0,100,100,"window",false)
button = guiCreateButton(10,10,10,10,"button",false,win)

triggerEvent("convertDX",localPlayer,win)

 

Posted
win = guiCreateWindow(0,0,100,100,"window",false)
button = guiCreateButton(10,10,10,10,"button",false,win)
guiSetVisible ( win, false )

triggerEvent("convertDX",localPlayer,win)

try this

Posted
wElement = guiCreateWindow(0,0,300,300,"My Window", false)
exports.global:centerWindow(wElement)

tabPanel = guiCreateTabPanel ( 0, 0.04, 1, 1, true, myWindow )
myTab = guiCreateTab( "TEST TAB", tabPanel )


guiSetAlpha(wElement, 0)
        
for _, v in ipairs(getElementChildren(wElement)) do
  -- GUİ Elements
  guiSetAlpha(v, 0)
  
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...