LawyerMorty

Untitled

Apr 13th, 2014
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. addEventHandler( "onClientClick", root,
  2. function ( _, state, mX, mY )
  3. if (not showCamera) then return end
  4. local x,y = guiGetPosition(GTIPhone, false)
  5. local x,y = x+X_OFF-278, y+Y_OFF-232
  6. --if ( mX >= 390+x and mX <= (390+x) + 48 and mY >= (584+y) and mY <= 584+y + 48 ) then
  7. if ( mX >= 490+x and mX <= (490+x) + 48 and mY >= (574+y) and mY <= 574+y + 48 ) then
  8. if state == "down" then
  9. if not isTimer( onAntiSnap) then
  10. setBlink( true)
  11. triggerServerEvent( "onCameraPictureTaken", localPlayer)
  12. setTimer( setBlink, 1750, 1, false)
  13. onAntiSnap = setTimer( function() end, 1750, 1)
  14. end
  15. end
  16. end
  17. end
  18. )
Advertisement
Add Comment
Please, Sign In to add comment