minigame
Executes various minigames and skill checks.
Parameters:
type
(string): The minigame type to executevalues
(table): Configuration values specific to each minigame type
Returns:
success
(boolean):true
if minigame was completed successfully,false
otherwise
Supported Minigame Types:
'ps-circle'
Circle progress minigame from PS-UI.
local values = {
amount = 3, -- Number of circles to complete
speed = 15 -- Speed of the circle
}
local success = ps.minigame('ps-circle', values)
'ps-maze'
Maze navigation minigame from PS-UI.
local values = {
timeLimit = 20 -- Time limit in seconds
}
local success = ps.minigame('ps-maze', values)
'ps-scrambler'
Word scramble minigame from PS-UI.
local values = {
type = "alphabet", -- Type of scrambler
timeLimit = 30 -- Time limit in seconds
}
local success = ps.minigame('ps-scrambler', values)
'ps-varhack'
Variable hacking minigame from PS-UI.
local values = {
blocks = 5, -- Number of blocks
timeLimit = 30 -- Time limit in seconds
}
local success = ps.minigame('ps-varhack', values)
'ps-thermite'
Thermite cutting minigame from PS-UI.
local values = {
timeLimit = 10, -- Time limit in seconds
gridsize = 6, -- Grid size (6x6, 8x8, etc.)
wrong = 3 -- Number of wrong attempts allowed
}
local success = ps.minigame('ps-thermite', values)
'ox'
OX Lib skill check minigame.
local values = {
difficulty = {'easy', 'easy', 'medium'}, -- Difficulty array
input = {'1', '2', '3', '4'} -- Input keys (optional)
}
local success = ps.minigame('ox', values)
Last updated