HG Snuuk Posted October 5, 2019 Share Posted October 5, 2019 opa tudo bom estou com um projeto , e estou tendo um erro muito chato , ah questão é que ele não tava dando showChat ai eu arrumei para isso , porem quando eu aperto bind O ele some tudo certinho e se apertar dnv ele volta porem se aperto "O" e dps " i " o chat buga e fica off , porem se eu volto no " O " e aperto novamente o " i " ele volta ao normal eu queria fazer com que independente se apertar " O " ele voltar ao normal mesmo se tiver Dado Bind " i " bindKey("O", "down", function () if getElementData(localPlayer,"O") == true then if panel == false then panel = true showChat(false) addEventHandler("onClientRender", root, dxMenu) addEventHandler("onClientRender", root, dxLogo) else panel = false showChat(false) removeEventHandler("onClientRender", root, dxMenu) removeEventHandler("onClientRender", root, dxLogo) end else if panel == true then panel = false showChat(true) removeEventHandler("onClientRender", root, dxMenu) removeEventHandler("onClientRender", root, dxLogo) end end end) bindKey("I", "down", function () if getElementData(localPlayer,"O") == true then if panel == false then panel = true addEventHandler("onClientRender", root, dxMenu) addEventHandler("onClientRender", root, dxLogo) else panel = false removeEventHandler("onClientRender", root, dxMenu) removeEventHandler("onClientRender", root, dxLogo) end else if panel == true then panel = false removeEventHandler("onClientRender", root, dxMenu) removeEventHandler("onClientRender", root, dxLogo) end end end) 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