About This File
Hello again, Ragers.
This minigame is the same as the one in the base game heists. It's purely scaleform, and no CEF.
(Thanks to Develuxe for C# version)
Simply put this into client_packages, and add this to your index.js:
require('./CircuitBreaker');
It has three events:
CircuitBreakerWIN - This event is called on the client when the client player has successfully won the minigame
CircuitBreakerLOSE - This event is called on the client when the client player quits, or fails to complete the minigame
CircuitBreakerStart - This event is callable on the client (from server with player.call), and is used as follows:
// Lives (any number), this number is the total amount of lives for all levels
// Difficulty (0-4), where 0 is easiest and 4 is hardest
// Level Count (1-6), how many levels have to be completed
player.call('CircuitBreakerStart', /* lives */ 3, /* difficulty */ 1, /* level count */ 2);
Edited by xNameless69