Jump to content

abrir inventario


Recommended Posts

quando estou logando o inventario abre enquanto eu estou digitando minha senha, estão queria colocar para que o painel inventario abri-se somente se o player estiver online.

mas eu não consegui.

script de abrir o painel:

function FecharAbrirPainel ()
if painel == false then
  addEventHandler ( "onClientRender", root, PainelInventario )
  painel = true
  showCursor ( true )
  playSoundFrontEnd ( 43 )
  setElementData(localPlayer, "TS:Aba", "Inicial")
else
  removeEventHandler ( "onClientRender", root, PainelInventario )
  playSoundFrontEnd ( 43 )
  painel = false
  showCursor ( false )
  Lista_Drogas:SetVisible(false)
end
end
bindKey ("I" , "down" , FecharAbrirPainel)

 

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...