Keypad Minigame
Enhance your server’s gameplay with this challenging keypad minigame! Inspired by popular game mechanics.
Get it here: gamzkystore.com
Preview video: YouTube
Support: Discord
Key Features:
- Fully standalone, seamlessly integrates with any existing framework.
- 100% unencrypted, allowing full customization and transparency of the code.
- Players must correctly enter a PIN within a limited number of attempts.
- Configurable options allow customization of PIN length and number of attempts.
- Designed with detailed feedback for each PIN attempt, guiding users toward the correct sequence.
- Easily customizable through configuration for adapting to different in-game scenarios.
- Optionally enable sound effects in the config.
Code example
-- Starts a keypad minigame with a pin length of 3 and a maximum amount of tries of 5.
local pinLength = 3
local maxTries = 5
local success = exports.gs_keypad:StartGame(pinLength, maxTries)
print(success and 'Success' or 'Failed')
Config file
Config = {
debug = false, -- Enables debug mode, which allows you to start the game via a command.
enableSounds = false, -- Enables sound effects.
defaultPinLength = 3, -- The default pin length for the game.
defaultMaxTries = 5, -- The default max tries for the game.
disabledControls = { -- The controls that are disabled when the game is open. By default some movement controls are disabled.
22, -- INPUT_JUMP
23, -- INPUT_ENTER
30, -- INPUT_MOVE_LR
31, -- INPUT_MOVE_UD
32, -- INPUT_MOVE_UP_ONLY
33, -- INPUT_MOVE_DOWN_ONLY
34, -- INPUT_MOVE_LEFT_ONLY
35, -- INPUT_MOVE_RIGHT_ONLY
}
}
Code is accessible | Yes |
Subscription-based | No |
Lines (approximately) | 663 |
Requirements | None |
Support | Yes |