Simple Miner Minigam

This item is free.

Simple Miner Minigame

Package Description

Explanation:

    Often times, being a miner is something very boring when you just have to go to a few markings and then press a key and then perform an animation. So, to make a difference to that, we created this simple minigame for miners. There are two minigames that are very easy to use and that work on any server. To use them, you'll just have to call the event that opens the mini game on the player's screen.


Features:

  • Works on any server.
  • You can translate texts easily in the Config.lua file
  • Contains 2 puzzles.
  • You can set the difficulty of the bar in puzzle 1.
  • The puzzle bar 1 decreases if the player doesn't keep pressing Space.
  • You will be able to define how many cars will have in puzzle 2
  • You can set the speed and spawn time of the car in puzzle 2.

Puzzle 1: remove the stones from the mine path

0dd98efba60efe9ca720e0091319824f8ad59970.png


Puzzle 2: get the ore carts

fa48e6b534f235ec64e7bc43fdeb9dae224bfcf9.png


How to use:

For the first mini game, you can open it by calling the event “lg_puzzleminer:Open_1”  which is on the client side.

Example of how to open the first mini game with a difficulty of 2: 

Note: difficulty 1 is the hardest of all.

TriggerEvent("lg_puzzleminer:Open_1", 2, function(result)
        if result.success then
            -- Here you define what happens when you complete the first mini game.
        else
            -- Here you define what happens when the player cancels the first mini game
        end
    end)


To open the second mini game, you can open it by calling the event: “lg_puzzleminer:Open_2” which is on the client side.

Example of how to open the second mini game, with 10 carts, speed equal to 80 and cart spawn time equal to 1000 milliseconds (1 second).

In this event, you can also check when carts the player has picked up, using result.amount.

Note: The lower the speed value, the faster the car will be.


TriggerEvent("lg_puzzleminer:Open_2", 10, 80, 1000, function(result)
        if result.success then
            -- Here you define what happens when you complete the second mini game.
            print("You completed the second puzzle and you got this amount of carts: " .. result.amount)
        else
            -- Here you define what happens when the player cancels the second mini game
            print("You canceled the second puzzle")
        end
    end)


Resmon:

The maximum captured was 0.02ms when the puzzle was open.

70fdbcd1f9b0eb7522de8b0507a03535aaf78035.png


Demonstration:

Puzzle 1:

ksVlzx4.gif


Puzzle 2:

N8SgpFK.gif