Skip to content

This minigame is designed specifically for FiveM servers. The code has been built using TypeScript and Solid.js, ensuring a robust and efficient implementation.

License

Notifications You must be signed in to change notification settings

BigSmoKe07/minigames

 
 

Repository files navigation

Usage

Those templates dependencies are maintained via pnpm via pnpm up -Lri.

This is the reason you see a pnpm-lock.yaml. That being said, any package manager will work. This file can be safely be removed once you clone a template.

$ npm install # or pnpm install or yarn install

Learn more on the Solid Website and come chat with us on our Discord

Available Scripts

In the project directory, you can run:

npm run dev or npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.

npm run build

Builds the app for production to the dist folder.
It correctly bundles Solid in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

Deployment

You can deploy the dist folder to any static host provider (netlify, surge, now, etc.)

Exports Usage and Images

exports['minigame']:AlphabetGame(function(success)
    if success then
        print("Alphabet game success")
    else
        print("Alphabet game failed")
    end
end, 10000, 5) -- Timeout duration (milliseconds), Number of keys

image

exports['minigame']:DirectionGame(function(success)
    if success then
        print("Direction game success")
    else
        print("Direction game failed")
    end
end, 10000, 2, 3, 7) -- Timeout duration (milliseconds), Required correct choices, Min grid size, Max grid size

image

exports['minigame']:FlipGame(function(success)
    if success then
        print("Flip game success")
    else
        print("Flip game failed")
    end
end, 10000, 5) -- Timeout duration (milliseconds), Grid size

image

exports['minigame']:LockpickingGame(function(success)
    if success then
        print("Lockpicking game success")
    else
        print("Lockpicking game failed")
    end
end, 30000, 12, 3) -- Timeout duration (milliseconds), Number of locks, Number of levels

image

exports['minigame']:SameGame(function(success)
    if success then
        print("Same game success")
    else
        print("Same game failed")
    end
end, 30000, 11, 8) -- Timeout duration (milliseconds), Grid size X, Grid size Y

image

exports['minigame']:UntangleGame(function(success)
    if success then
        print("Untangle game success")
    else
        print("Untangle game failed")
    end
end, 30000, 6) -- Timeout duration (milliseconds), Number of points

image

exports['minigame']:WordsGame(function(success)
    if success then
        print("Words game success")
    else
        print("Words game failed")
    end
end, 30000, 5) -- Timeout duration (milliseconds), Required correct choices

image

exports['minigame']:FloodGame(function(success)
    if success then
        print("Flood game success")
    else
        print("Flood game failed")
    end
end, 80000, 2, 3) -- Timeout duration (milliseconds), Move count leniency, Grid size

image

About

This minigame is designed specifically for FiveM servers. The code has been built using TypeScript and Solid.js, ensuring a robust and efficient implementation.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 98.8%
  • Other 1.2%