kokoseda Posted April 25, 2020 Share Posted April 25, 2020 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
Scripting Moderators ds1-e Posted April 25, 2020 Scripting Moderators Share Posted April 25, 2020 https://wiki.multitheftauto.com/wiki/GuiSetVisible Link to comment
#\_oskar_/# Posted April 25, 2020 Share Posted April 25, 2020 local Painelstt = false -- You forgot to add this 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) Link to comment
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