Skill Check

Interactive skill check mini-game with configurable difficulty

Options

OptionTypeRequiredDefaultDescription
titlestringYesnilTitle for skill check
difficultystring/tableYesnilDifficulty level or array of difficulties
inputsstring/tableNo'E'Single input key or array of input keys

Difficulty Levels

  • 'easy' - Large target area, slow speed
  • 'medium' - Medium target area, medium speed
  • 'hard' - Small target area, fast speed
  • Custom object: { areaSize = 20, speedMultiplier = 1.5 }

Functions

-- Start skill check
local success = exports.lation_ui:skillCheck(title, difficulty, inputs)
 
-- Cancel active skill check
exports.lation_ui:cancelSkillCheck()
 
-- Check if skill check is active
local isActive = exports.lation_ui:skillCheckActive()

Return Values

  • true - All skill checks completed successfully
  • false - Failed or cancelled

Example

local success = exports.lation_ui:skillCheck('Lockpick', {'easy', 'easy', 'easy', 'easy'}, {'W', 'A', 'S', 'D'})
 
if success then
    print('Success')
else
    print('Failed')
end