Maze

Creates and displays a number maze minigame with configurable parameters.
Parameters:
callback(function|boolean): Callback function to receive the result, orfalseto disable callbackspeed(number, optional): Time duration in seconds. Defaults to 10 if nil
Returns:
result(boolean):trueif maze completed successfully,falseif failed or cancelled
Exports:
Standard Export
exports.ps_lib:Maze(callback, speed)
PS-UI Export (Legacy Support):
exports['ps-ui']:Maze(callback, speed)
Usage Examples:
Now there are two ways you can use this:
USE CASE 1:
This uses a function as the first parameter to run when the maze is done.
USE CASE 2:
This uses false as a first parameter to tell the minigame "we don't need a function" and it returns the result.
Both cases will work the same exact way, just different ways to handle it :)
Last updated