Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function move (btn, state, _, _, _, _, _, clickedElement)
- if ((btn == "right") and (state == "down")) then
- if visible then
- if isCursorShowing() then
- if clickedElement == isMouseInPosition(sx*pos[1], sy*pos[2], sx*0.135, sy*0.02) then
- move = false
- local cX, cY = getCursorPosition()
- pos = {cX, cY}
- end
- end
- end
- end
- end
- addEventHandler("onClientRender", root, move)
- addEventHandler("onClientClick", root, move)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement