This mini-game is a Security Code Bypass game within the FiveM environment.
The player must enter a 4-digit code to try to reach the correct result before time runs out or attempts are exhausted.
- The player sees a Cyberpunk-style terminal interface.
- A timer starts from 60 seconds (adjustable) and the available attempts are displayed (default 10).
- The player enters a 4-digit code in the input field.
- The code is evaluated:
- Correct number in the correct position → green.
- Number exists in the code but in the wrong position → yellow.
- Number does not exist → red.
- The game ends when:
- The player guesses the code correctly → Access Granted.
- The attempts are exhausted or the timer runs out → Access Denied.
- Matrix Rain Background: Falling zeros and ones in a Matrix-style animation.
- Boot Sequence: Initial loading screen showing system initialization messages.
- Game Content: The main game interface, which includes:
- Timer
- Number of attempts
- Board displaying previous attempts
- Input field (Glitch Input)
- Execute button
- Result Screen:
- Loader: shows "Processing Result..." while verifying.
- Final Result: displays a circle with the result (
✓for success or✗for failure) along with the text Access Granted/Denied.
GameSettings.timer: allowed time in seconds.GameSettings.maxAttempts: maximum number of attempts.
RegisterCommand("stg", function()
StartMiniGame()
end)