Jump to content

Como bloquear o chat de abrir, no guiGetText?


Recommended Posts

estou com um painel dx aqui, e na hora que vou digitar algo que contem as letras "T", "M" e "U" abre o chat do RP que estão bindadas nessas teclas, eu lembro que há uma forma de bloquear isso no client enquanto o painel dx está aberto, como é? 
eu tentei dessa maneira, adicionando o guisetvisible e o setimput, e não consegui
 

function abrir (_,state)
if painel == true then
if  state == "down"  then
if  isCursorOnElement(639, 403, 104, 35 ) then
if guiGetText(edit) == "alto" then
guiSetInputEnabled(true)
		-- ocultar a janela e todos os componentes
guiSetVisible(abrir, true)
triggerServerEvent ("abrir", localPlayer)
removeEventHandler ("onClientRender", root, painela)
showCursor (false)
painel = false
guiSetVisible(edit, false)
else
    outputChatBox ('[ ATENÇAO ] - Senha incorreta')
end
end
end
end
end
addEventHandler ("onClientClick", root, abrir)

 

Edited by Bruno R dos Santos
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...