Jump to content

Show/hide with bind key


kokoseda

Recommended Posts

Hello I want to make the scroll bar hide/show with bind key

I did it with the dx window with this code:

local Botao = "F7"  
function OpenPainel()  
    if Painelstt == false then 
        addEventHandler("onClientRender", getRootElement(), PainelDc)
        Painelstt = true
        showCursor(true)

    else 
        removeEventHandler("onClientRender", getRootElement(), PainelDc)
        Painelstt = false
        showCursor(false)

    end 
end 
bindKey(Botao, "down", OpenPainel)

What about the scroll bar like :

GUIEditor.scrollbar[3] = guiCreateScrollBar(750, 540, 180, 23, true, false)

What's the codes?

Link to comment

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