ODutii Posted July 31, 2019 Share Posted July 31, 2019 open a dx panel using command? Link to comment
HassoN Posted August 1, 2019 Share Posted August 1, 2019 You could use variables for such matter. Add a command that sets a variable to true and check for it when you render your DX function. for example: status = true -- when you enter X command if (status) then -- when you render your DX function -- your DX code end 1 Link to comment
Maloi2k Posted August 1, 2019 Share Posted August 1, 2019 Hello, use its easy example local panel = false function drawPanel() dxDrawImage() end function useCmd() if not panel then addEventHandler("onClientRender", root, drawPanel) panel = true end addCommandHandler("cmd", useCmd) 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