Advertisement
Guest User

Untitled

a guest
Dec 13th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. function move (btn, state, _, _, _, _, _, clickedElement)
  2. if ((btn == "right") and (state == "down")) then
  3. if visible then
  4. if isCursorShowing() then
  5. if clickedElement == isMouseInPosition(sx*pos[1], sy*pos[2], sx*0.135, sy*0.02) then
  6. move = false
  7. local cX, cY = getCursorPosition()
  8. pos = {cX, cY}
  9. end
  10. end
  11. end
  12. end
  13. end
  14. addEventHandler("onClientRender", root, move)
  15. addEventHandler("onClientClick", root, move)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement