qb-minigames
How many times shall you fail!
Last updated
Was this helpful?
How many times shall you fail!
Last updated
Was this helpful?
qb-minigames
is a lightweight collection of skill-based minigames designed to add interactive challenges to your server's gameplay. Each minigame can be used as a standalone mechanic or embedded into scripts like robberies, hacking, crafting, or lockpicking to increase player engagement.
These minigames are implemented entirely in Lua with simple client exports, making them easy to integrate with existing qb-core
resources or custom logic
🧠 Quiz: Multi-question trivia with time pressure
🔡 Word Guess: Hangman-style challenge with limited mistakes
🔀 Word Scramble: Unscramble the word before time runs out
⌨️ Key Minigame: Timed key presses with fault tracking
🛠️ Lockpick: Classic lockpicking challenge with limited tries
💻 Hacking: Pattern memory and input within a time limit
🎯 Skillbar: Reaction-based challenge with difficulty and custom keys
🔢 Pinpad: Input a correct code using a keypad UI
Presents a series of multiple-choice questions that the player must answer correctly within a time limit
questions: table
A list of questions, each with:
question: string
answer: string
options: table
— a list of possible answers
requiredCorrect: number
timePerQuestion: number
(in seconds)
A classic hangman-style game where the player must guess the letters of a hidden word, with a limited number of wrong guesses allowed
word: string
hint: string
maxWrongGuesses: number
Presents the player with a scrambled word and a hint. The player must unscramble it within a time limit.
word: string
hint: string
timeLimit: number
(in seconds)
Requires the player to rapidly press randomly shown keys a specified number of times. Tracks incorrect inputs and early exits.
requiredPresses: number
Total number of correct key presses required.
A timed lockpicking minigame where the player must successfully pick a lock within a set number of tries.
attempts: number
The number of lockpick attempts the player is allowed.
A memory-based hacking minigame where the player must solve a visual pattern challenge within a time limit.
gridSize: number
The number of characters in the code block the player must memorize.
timeLimit: number
Time (in seconds) to solve the hack.
A reaction-based minigame where the player must press the correct keys at the right time. Supports custom difficulty and key sets.
difficulty: string
(optional)
Can be "easy"
, "medium"
, or "hard"
. Defaults to "easy"
if omitted.
keys: string
(optional)
A string of allowed key inputs (e.g. "wasd"
). Defaults to "1234"
if omitted.
A numeric keypad minigame where the player must input the correct pin code. The minigame uses keys 1–9
and tracks user actions.
pin: number
The correct 4-digit code (must use digits 1–9).