A simple minigame for FiveM where letters fall from the top of the game container and the player has to press the corresponding key on the keyboard.
Join my Discord for support.
- Clone the repository
- Add the
letters
folder to yourresources
folder - Add
ensure letters
to yourserver.cfg
To start the minigame, use the export start
like so:
exports.letters:start({
lives = 3, -- How many letters the player can miss
speed = 0.3,
maxScore = 4, -- How many letters the player has to type to win
letters = {'A', 'S', 'D'}, -- Optional. Defaults to all letters
}, function(result)
if result then
-- The player won
else
-- The player lost
end
end)