Prompts & autofill ​
Every prompt has the same frame: a header tile with the lock's icon, the title and a second line (sub), ESC to
close, and the input for its type. The NUI only sends what the player entered (or the id of a saved entry). The server
checks the session, the distance, the lockout and the code, and answers with the result.
| PIN | Login |
|---|---|
![]() |
![]() |
| Phrase | Pattern |
![]() |
![]() |
Prompt types ​
| Type | Input |
|---|---|
pin |
Dots and a 3×4 keypad. Number keys and Backspace work; the code submits with ENTER or the check key |
password |
One masked field with an eye toggle |
login |
Username and password. TAB switches field when nothing is saved; ↑ ↓ walk the dropdown of saved logins (own first, then shared vault logins with the vault's name) |
phrase |
Words become chips as you type. Backspace on an empty word removes the last chip |
pattern |
3×3 dot grid, drawn with the mouse |
otp |
Six boxes for a 2FA code. See 2FA codes |
Open one from your resource with the Prompt export (client or server). See
Using it from your resource.
Autofill ​
When the keychain (or a vault the player may see) has an entry for the lock, a Use saved code chip sits at the top of the prompt. TAB fills it and submits. The client only sends the entry id; the server decrypts the entry and compares, so the plain code never reaches the client.
- Players can switch autofill off per entry in the Passwords app and type by hand.
- A lock registered with
autofill = falsenever offers it. - A stale entry (saved before the owner changed the code) fails like a wrong code and counts as a try.
- Grants without a code (see Locks → Codes, grants) open the lock through autofill only.
Proximity prompts ​
At a lock with coords the player gets an np_hud interaction prompt (without np_hud: a GTA help text) within
Config.Locks.promptDistance (1.6 m, or the lock's radius when smaller):
| Key | Shown when | Does |
|---|---|---|
| E Unlock | The player has an entry for the lock | Unlocks straight away with the saved code, no panel. If that fails ("Wrong code"), the player can still type |
| E Lock | The door is open and the player knows the code or manages the lock | Locks the door again |
| G Enter code | The lock has a code | Opens the prompt to type |
| H Watch | Someone within Config.Surf.distance is typing in a prompt |
Shoulder surfing |
The keys come from Config.Keys. While a panel is open the proximity prompt hides.
Save and update offers ​
After a typed success (or a guest code, a shared entry, a read note), np_passwords offers to remember it:
- Save this code? when the player has no entry for the lock yet.
- Update saved code? when their entry has a different code (the owner changed it).
- Nothing when the saved code was right.

With np_hud the offer is an np_hud toast with Y / N actions, so the player keeps moving. Without np_hud it is a
toast in np_passwords' own NUI. Offers expire after Config.Offers.ttl (60 s). Until then the code is held encrypted
on the server, never on the client.
Wrong, locked, unlocked ​
| Wrong | Locked out | Unlocked |
|---|---|---|
![]() |
![]() |
![]() |
- Wrong: red dots, a shake and n tries left. Wrong tries count per lock, for everyone: three players guessing one try each lock the keypad just like one player guessing three times.
- Locked out: after
tries(3) wrong tries the lock refuses every attempt forlockoutseconds (45). The prompt shows an orange countdown ring. Owners get an alert (np_phone notification with a link to the entry, else a toast), and withdispatchthe server firesnp_passwords:dispatch. - Unlocked: green dots, then the prompt closes after
Config.Prompt.closeDelay. The server records the unlock (IsUnlocked), logs it, firesnp_passwords:unlockedand opens the door or stash.
Verifier logins (verify = 'name') have no shared counter: the session closes
after Config.Prompt.verifyTries (5) wrong tries.
A prompt also closes when the player dies, when the character unloads, and on ESC (the caller gets false with
reason cancelled). Open prompts block np_inventory and hide the centre zone of np_hud.
Create a code ​

Owners (and staff) open the generator with the Create export or from the Passwords app. It has a segmented control
for the allowed types (PIN / Password / Phrase / Pattern), a suggested code, the strength as time to crack, and the
rules as a live checklist.
| Key | Does |
|---|---|
| R | Shuffle a new suggestion |
| ← → | Shorter / longer (digits, characters or words) |
| ENTER | Use & save |
| ESC | Cancel |
The rules come from the lock (rules) and the caller (opts.rules); the stricter value wins. The server checks them
again (min, max, digit, symbol, upper, words, noReuse, PIN length), recomputes the strength and stores
only the hash. The creator's keychain gets the new code; every other keychain entry goes stale.
Strength ​
Strength is shown as time to crack, the same number the cracking minigame uses:
seconds = guesses / Config.Strength.guessesPerSecond (2).
| Type | Guesses |
|---|---|
pin |
10^length, or 20 for common PINs (1234, 0000, 2580, 6969, …, all one digit, straight up or down) |
password / login |
charset^length with 10 digits + 26 lower + 26 upper + 33 symbols for the classes used, or 50 for common passwords (password, qwerty, letmein, …) |
phrase |
2048^words, ×10 with a number |
pattern |
By length: 4 → 1624, 5 → 7152, 6 → 26016, 7 → 72912, 8 and 9 → 140704 |
| Level | Crack time |
|---|---|
| Weak | under 1 min |
| Fair | under 10 min |
| Good | under 2 h |
| Strong | 2 h or more |
Examples: PIN 1234 weak (10 s), PIN 4821 good (about 1.4 h), PIN 482197 strong, pattern 1259 good (812 s),
phrase grove-taco-lamp-42 strong.
Keys ​
| Where | Keys |
|---|---|
| Any prompt | TAB saved code · ENTER submit · ESC close |
| PIN / 2FA | 0–9 · Backspace |
| Login | TAB saved login or next field · ↑ ↓ saved logins |
| Phrase | Backspace on an empty word removes the last chip |
| Generator | R shuffle · ← → length · ENTER save · ESC cancel |
| Cracking, warrant sheet | ESC close |
| Save / update toast | Y / N |
| World | E unlock / lock · G enter code · H watch |
autofill, submit, cancel and shuffle follow Config.Keys.






