Jump to content

ver ou não ver?


Recommended Posts

ola,

queria saber como posso fazer com que uma janela gui fique visivel apenas pra um jogador em especial?

CLIENT

addEvent ( "verShop", true ) 
addEventHandler ( "verShop", root, 
    function ( ) 
guiSetVisible(janela, true) 
        showCursor(true) 
    end 
) 

server

function EntrarNoMarcador( hitElement) 
if getElementType ( hitElement ) == "player" then 
triggerClientEvent ( "verShop", root, hitElement ) 
triggerClientEvent ( "MerchantSoundAleatorio", root, 243.59648132324, 1858.0260009766, 15.084012985229  ) 
end 
end 
addEventHandler( "onMarkerHit", marcador, EntrarNoMarcador )  

obs: esse não e o script inteiro.

o problema é que a janela fica visivel pra todos quando alguem entra no marker.

obrigado!

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