FlyingSpoon Posted April 19, 2015 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) GitHub: https://github.com/flyingspoon YouTube: https://www.youtube.com/channel/UClsnd4SEid3gob33DSk1-GQ
ALw7sH Posted April 19, 2015 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)
Walid Posted April 19, 2015 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 Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
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