Jump to content

GUI


Mefisto_PL

Recommended Posts

Why when the player hit the marker then gui is showed to everyone? ..

function StripMarkerHit ( thePlayer, HitElement ) 
    if isElementWithinMarker ( thePlayer, Strip_Marker ) then 
    guiSetVisible ( StripWindow, true ) 
    showCursor ( true ) 
    guiSetInputEnabled ( true ) 
    else 
    guiSetVisible ( StripWindow, false ) 
    showCursor ( false ) 
    guiSetInputEnabled ( false ) 
    end 
end 
addEventHandler ( "onClientMarkerHit", Strip_Marker, StripMarkerHit ) 

Link to comment
Guest Guest4401
    function StripMarkerHit ( thePlayer, HitElement ) 
if thePlayer == localPlayer then 
        if isElementWithinMarker ( thePlayer, Strip_Marker ) then 
        guiSetVisible ( StripWindow, true ) 
        showCursor ( true ) 
        guiSetInputEnabled ( true ) 
        else 
        guiSetVisible ( StripWindow, false ) 
        showCursor ( false ) 
        guiSetInputEnabled ( false ) 
        end 
end 
    end 
    addEventHandler ( "onClientMarkerHit", Strip_Marker, StripMarkerHit ) 

Link to comment
addEventHandler( "onClientMarkerHit", Strip_Marker, 
    function( player ) 
        if ( player == localPlayer ) then 
            guiSetVisible( StripWindow, not guiGetVisible( StripWindow ) ); 
            showCursor( guiGetVisible( StripWindow ) ); 
            guiSetInputEnabled( guiGetVisible( StripWindow ) ); 
        end 
    end 
) 

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