Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- addEventHandler( "onClientClick", root,
- function ( _, state, mX, mY )
- if (not showCamera) then return end
- local x,y = guiGetPosition(GTIPhone, false)
- local x,y = x+X_OFF-278, y+Y_OFF-232
- --if ( mX >= 390+x and mX <= (390+x) + 48 and mY >= (584+y) and mY <= 584+y + 48 ) then
- if ( mX >= 490+x and mX <= (490+x) + 48 and mY >= (574+y) and mY <= 574+y + 48 ) then
- if state == "down" then
- if not isTimer( onAntiSnap) then
- setBlink( true)
- triggerServerEvent( "onCameraPictureTaken", localPlayer)
- setTimer( setBlink, 1750, 1, false)
- onAntiSnap = setTimer( function() end, 1750, 1)
- end
- end
- end
- end
- )
Advertisement
Add Comment
Please, Sign In to add comment