[FREE RELEASE] Keymaster minigame by Codesign

Keymaster - a minigame by Codesign


What is this resource?

Keymaster is a simple skill-based minigame that draws inspiration from rhythm games and that GTA SA Mission - “Lowrider Challenge”.

Players need to press the correct key once it enters the target field. If they are successful they gain points based on their accuracy and lose points if they miss.

The goal of the game is to acquire a set number of points within the given time frame and with a minimal amount of missed keys.

Keymaster has several configurable options ( per game ):

  • Score
  • Allowed misses
  • Time frame
  • Key sequence
  • Speed increment ( after a successful hit )

This allows server managers and devs to adjust the difficulty based on the task players need to complete.

Devs can call the minigame by sending difficulty ( config ) parameters. They will receive a callback once the game is finished ( success or fail ). This allows you to use it anywhere you wish!

Give your players a real challenge with Keymaster and replace those boring progress bars that require nothing but waiting!


Instructions

HERES AN EXAMPLE HOW TO START THE MINI GAME:

YOU CAN CUSTOMISE THE SETTINGS BY SENDING THIS TABLE IN THE EXPORT :

local CustomSettings = {
    settings = {
        handleEnd = true;  --Send a result message if true and callback when message closed or callback immediately without showing the message
        speed = 10; --pixels / second
        scoreWin = 1000; --Score to win
        scoreLose = -150; --Lose if this score is reached
        maxTime = 60000; --sec
        maxMistake = 5; --How many missed keys can there be before losing
        speedIncrement = 1; --How much should the speed increase when a key hit was successful
    },
    keys = {"a", "w", "d", "s", "g"}; --You can hash this out if you want to use default keys in the java side.
}

OR YOU CAN LEAVE IT EMPTY AND THE SCRIPT WILL USE THE DEFAULT VALUES IN THE TABLE IN THE CLIENT.LUA (line 4).

WHEN THE MINI GAME UI HAS CLOSED, THE EXPORT WILL RETURN TRUE OR FALSE BASED ON YOUR RESULT.

Example 1

local example = exports['cd_keymaster']:StartKeyMaster(CustomSettings)
if example then
    print('im a winner')
else
    print('i suck so bad')
end

Example 2

local example = exports['cd_keymaster']:StartKeyMaster()
if example then
    print('im a winner')
else
    print('i suck so bad')
end

Preview


Download


Check out our other paid scripts:

Expand

[PAID] Codesign Highly customisable Car HUD
[PAID] Codesign Police Dispatch
[PAID] Codesign Donator Shop
[PAID] Codesign Vehicle Garage
[PAID] Codesign Identity
[PAID] Codesign Multicharacter
[PAID] Codesign Player HUD - Smartwatch
[PAID] Codesign Highly customisable Car HUD
[PAID] Codesign Prop placer
[PAID] Codesign Spawn selector
[PAID] Codesign Terminal Hacker - Minigame

Check out our free scripts:

Expand

[FREE RELEASE] Easytime - Time and weather management by Codesign
[FREE RELEASE] Devtools - LUA / JSON Table viewer by Codesign
[FREE RELEASE] Draw text UI
[FREE RELEASE] Keymaster minigame by Codesign


15 Likes

when u fail and try to start again no matter if u press the key good it throw fail

What HUD are you using? Like the apple watch one. It’s awesome. Is it free?

It’s not released yet

Will check it out

Amazing job, congrats!

2 Likes

not release??? you sell that how is not release…maybe NOT FREE

great work codesign!
btw nice dispatch system :wink:

2 Likes

nice to detect AFK players

2 Likes

love this script!

1 Like

btw make sure the name of the folder is cd_keymaster or basically it will break the script

1 Like

We are thinking of implementing this script to a fishing resource to make it more dynamic, it is very handsome

3 Likes

Terribly good minigame. There are many things that can be devised with her.

1 Like

Nice!

1 Like

great release , btw how to remove countdown,black and blur screen before start key showup?

Great Free Release As AllWays

1 Like

Good addon to any server, Slightly tricky to set up at first however not impossible

1 Like