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

Credit: These minigames are ported from browser games originally found at codingnepalweb.com โ€” full credit to the original creator(s)

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: table

    • A list of questions, each with:

      • question: string

      • answer: string

      • options: table โ€” a list of possible answers

  • requiredCorrect: number

  • timePerQuestion: 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: string

  • hint: string

  • maxWrongGuesses: number


WordScramble

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)


KeyMinigame

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.


Lockpick

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.


Hacking

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.


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: number

    • The correct 4-digit code (must use digits 1โ€“9).

Last updated

Was this helpful?