Gesture
Draw a specific gesture pattern with precision.

-- Gesture Lock
RegisterCommand('testgesture', function()
local correctGesture = {
{ x = 100, y = 100 },
{ x = 200, y = 200 },
{ x = 300, y = 100 }
} -- "V" shaped gesture
exports['moon-ui']:OpenGestureLock(correctGesture, function(success)
if success then
print('Gesture correct! Access granted.')
-- Add your logic here for successful gesture entry
else
print('Gesture incorrect! Access denied.')
-- Add your logic here for failed gesture entry
end
end)
end)
Last updated