qb-minigames
How many times shall you fail!
Introduction
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
Features
๐ง 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
Quiz
Presents a series of multiple-choice questions that the player must answer correctly within a time limit
questions:
tableA list of questions, each with:
question:
stringanswer:
stringoptions:
tableโ a list of possible answers
requiredCorrect:
numbertimePerQuestion:
number(in seconds)
WordGuess
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:
stringhint:
stringmaxWrongGuesses:
number
WordScramble
Presents the player with a scrambled word and a hint. The player must unscramble it within a time limit.
word:
stringhint:
stringtimeLimit:
number(in seconds)
KeyMinigame
Requires the player to rapidly press randomly shown keys a specified number of times. Tracks incorrect inputs and early exits.
requiredPresses:
numberTotal number of correct key presses required.
Lockpick
A timed lockpicking minigame where the player must successfully pick a lock within a set number of tries.
attempts:
numberThe number of lockpick attempts the player is allowed.
Hacking
A memory-based hacking minigame where the player must solve a visual pattern challenge within a time limit.
gridSize:
numberThe number of characters in the code block the player must memorize.
timeLimit:
numberTime (in seconds) to solve the hack.
Skillbar
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.
Pinpad
A numeric keypad minigame where the player must input the correct pin code. The minigame uses keys 1โ9 and tracks user actions.
pin:
numberThe correct 4-digit code (must use digits 1โ9).
Last updated
Was this helpful?
