FlyingSpoon Posted April 19, 2015 Share Posted April 19, 2015 Help! GUI opening for everyone! function dontTryBug() if ( guiGetVisible ( oneMinute ) ~= true ) then if source == Marker[2] then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) else if timeRem ~= "1" then if source == Marker[2] then showCursor ( false ) destroyElement ( GUIEditor.window[1] ) end end end end end addEventHandler("onClientMarkerHit", getRootElement(), dontTryBug) Link to comment
ALw7sH Posted April 19, 2015 Share Posted April 19, 2015 function dontTryBug(element) if element == localPlayer then if ( guiGetVisible ( oneMinute ) ~= true ) then if source == Marker[2] then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) else if timeRem ~= "1" then if source == Marker[2] then showCursor ( false ) destroyElement ( GUIEditor.window[1] ) end end end end end end addEventHandler("onClientMarkerHit", getRootElement(), dontTryBug) Link to comment
Walid Posted April 19, 2015 Share Posted April 19, 2015 Try this function dontTryBug ( hitPlayer, matchingDimension ) if matchingDimension and isElement(hitPlayer) and getElementType ( hitPlayer ) == "player" and hitPlayer == localPlayer then -- Your code end end 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