manawydan Posted May 7, 2013 Share Posted May 7, 2013 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
Vision Posted May 7, 2013 Share Posted May 7, 2013 Troca esse triggerClientEvent ( "verShop", root, hitElement ) por esse triggerClientEvent ( hitElement, "verShop", root ) 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