Skip to content

cody-raves/cr-flow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cr-flow

Skill-Based Puzzle Minigame with randomly generated puzzles.
Supports 5x5, 6x6, 7x7, 8x8, 9x9 sized grids.

• 100% Skill Based
• Random puzzle generation
• Scalable difficulty via timer and grid size
• Can be used for lockpicking, robberies, heists and more


Exports

-- 1) Set only the puzzle timer (in seconds)
--    Next time the UI opens, it will use this time limit.
exports['cr-flow']:SetFlowTimer(15)

-- 2) Set only the puzzle grid size
--    5–9 → 5x5 up to 9x9 (values outside this range are clamped).
exports['cr-flow']:SetFlowGridSize(7)

-- 3) Run a one-shot Flow puzzle and get a boolean result
--    First argument  = grid size  (5–9)
--    Second argument = time limit (seconds)
local success = exports['cr-flow']:PlayFlowPuzzle(7, 18)

if success then
    -- player solved the puzzle in time
else
    -- player failed, ran out of time, or closed it
end

About

NUI Skillcheck Minigame for Fivem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors