Jump to content

Painel DX GUI EDITOR AJUDA PRA BOTA COMANDO


Recommended Posts

Preciso de ajudar pra quando eu clickar no botao executar um comando,tipo vc escrever /kill no chat, so q ao inves de escrever vc so aperta o botao no Painel DX

aqui o script que tentei fazer

 

---Funçao para quando clicar no botao----

function Botao1 (_,state)
  if painel == true then
    if state == "down" then
    if isCursorOnElement ( screenW * 0.8073, screenH * 0.6315, screenW * 0.1323, screenH * 0.0583 ) then
      executeCommandHandler("kill")
      outputChatBox ( "Tropa do galo")
                end
            end
        end
   end
 addEventHandler ("onClientClick", root, Botao1 )

Edited by King021
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...