---
description: Enter a personal numeric PIN to continue.
---

# PIN

<figure><img src="https://3546595727-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoRne7ThJaBZiwCpSKT7V%2Fuploads%2FeAO4oI2tGLTT3opQjL7A%2Fpinlock.png?alt=media&#x26;token=79d78c64-fc3e-41be-9a69-d0e8bdc5450d" alt=""><figcaption></figcaption></figure>

```lua
-- PIN Lock
RegisterCommand('testpin', function()
    local correctPin = "123456" -- 6-digit PIN code
    exports['moon-ui']:OpenPinLock(correctPin, function(success)
        if success then
            print('PIN correct! Access granted.')
            -- Add your logic here for successful PIN entry
        else
            print('PIN incorrect! Access denied.')
            -- Add your logic here for failed PIN entry
        end
    end)
end)

```

