JeViCo Posted October 7, 2017 Share Posted October 7, 2017 For example i have dx gui. How can i make it open with pressed button? if i add addEventHandler("onClientRender",dx) it appears and stay on player join. When i add addCommandHandler("dx",dx) it appears on half of second( i don't even know how to combine 2 handlers(scripting level - newbie-noob) sry for poor eng(russia) Link to comment
WorthlessCynomys Posted October 7, 2017 Share Posted October 7, 2017 dxVisible = false function togglePanel() if (dxVisible == false) then dxVisible = true else dxVisible = false end end bindKey() addEventHandler("onClientRender", root, function() if (dxVisible == true) then dxDrawFunction end end ) Link to comment
JeViCo Posted October 7, 2017 Author Share Posted October 7, 2017 Thank you so much!!!it rly works! 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