/x99-keygame

An open source minigame you can use for FiveM.

Primary LanguageJavaScriptMIT LicenseMIT

image

x99 KeyGame

A minigame that you have to press if the incoming letters are green. If they are red, you will lose one attempt.

KeyGame

RegisterCommand("minigame", function()
    local letters = {
        "Q",
        "W",
        "E",
        "R",
    }
    -- Arguments: playMinigame(letters, maxwin, maxlife, letterspeed, goldletterspeed, progressbarTime)
    local game = exports["x99-minigame"]:playMinigame(letters, 3, 3, 1.5, 1, 1)
    if game == true then 
        print("You won!")
    else
        print("You lost!")
    end
end)
061O5q62-7x9G0l3o-0t0a862V.mp4

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, discord, or any other method with the owners of this repository before making a change. We'd love your help with any of the following:

  • Reporting a bug
  • Discussing the current state of the code
  • Submitting a fix
  • Proposing new features

Pull Request Process

  1. Fork the repository and create your branch from main.
  2. Implement the changes and test it.
  3. Test it again.
  4. Issue that pull request!