Skip to main content

Quick Start

local success = exports.lation_ui:signalBreach('Hack Terminal', 'medium', 'E')

if success then
    print('Success')
else
    print('Failed')
end

Functions

Start an interactive signal breach hacking mini-game.
local success = exports.lation_ui:signalBreach(title, difficulty, inputs, options)
Parameters:
  • title (string, optional) - Title for the signal breach
  • difficulty (string | table, required) - Difficulty level or custom config object (see Difficulty Levels)
  • inputs (string | table, optional) - Single input key or array of input keys (default: 'E')
  • options (table, optional) - Additional options (see Options)
Returns:
  • success (boolean) - true if the signal breach was completed successfully, false if failed or cancelled
Cancel the currently active signal breach.
exports.lation_ui:cancelSignalBreach()
Check if a signal breach is currently active.
local isActive = exports.lation_ui:signalBreachActive()
Returns:
  • isActive (boolean) - true if a signal breach is active, false otherwise

Configuration

Options

title
string
Title displayed for the signal breach
difficulty
string | table
required
Difficulty level or custom difficulty objectSee Difficulty Levels for available options
inputs
string | table
default:"E"
Single input key or array of input keys
options.speedIncrease
number
Amount to increase the indicator speed after each successful node (e.g. 0.08)
options.windowDecrease
number
Amount to shrink the target window after each successful node (e.g. 2)
options.failOnWrongKey
boolean
If true, pressing the wrong key immediately fails the breach (default: false)
options.onNode
function
Callback fired after each node attempt
onNode = function(node, success)
    -- node: number (1-based index of the completed node)
    -- success: boolean (whether the node was hit)
end

Difficulty Levels

Use predefined difficulty levels for quick setup.
easy
string
3 nodes, large window, slow speed
medium
string
4 nodes, medium window, medium speed
hard
string
5 nodes, small window, fast speed
Example:
-- Single difficulty
local success = exports.lation_ui:signalBreach('Hack Terminal', 'easy', 'E')

-- Hard with progression ramp
local success = exports.lation_ui:signalBreach('Bypass Firewall', 'hard', {'W', 'A', 'S', 'D'}, {
    speedIncrease = 0.08,
    windowDecrease = 2,
})

Preview

Five M GTA Process N7to0vp1ts