All exports run synchronously from the calling client Lua coroutine. Call one export, wait for its returned table, then continue your gameplay flow.
Standard games
Skillbar, Sequence, Lockpick, Pattern, Wires, Circuit, Fingerprint, and Terminal return:
data may include game-specific completion details. Treat it as display or diagnostic information, not authoritative state.
Drill
Drill returns success and reason. It accepts a difficulty preset or an options table.
Keypad
Without a validator, Keypad returns the submitted four-digit code. It also returns submitted, success, validated, reason, and an optional message.
Do not send a correct or secret code to NUI. Validate the submitted code through your server.
Return close = false after a wrong attempt to clear the entry and keep the keypad open. Your resource and its server still own attempt counts, permissions, rewards, and every authoritative action.
Cancel an active game
Only one FA Minigames session can run at a time. A second request returns reason = 'busy'.
Calling Cancel() closes the active session and causes it to return reason = 'cancelled'.