Image Lock
View an image and optionally enter a password to unlock.

-- Display Image
RegisterCommand('testimage', function()
local imageUrl = "https://images.pexels.com/photos/3052361/pexels-photo-3052361.jpeg" -- Example Pexels image
exports['moon-ui']:OpenImage(imageUrl, function(success)
if success then
print('Image opened successfully.')
else
print('Failed to open image.')
end
end, "1234") -- Pass nil instead of "1234" for no password protection
end)
Last updated