Terminal Hacker - Minigame
Step by step installation guide, common issues & solutions, code snippets, error codes, config previews, locales previews, SQL previews, and changelogs; all in 1 easily accessible place.
Buy Here

1. Unzip the cd_terminalhacker.zip folder and place this folder in your servers resource folder.
2. Add the resource to your server start config: ensure cd_terminalhacker. The name of the folder must not be changed or the script will not function correctly.
3. WARNING do not edit the encrypted files in any way.

You MUST read all of the configurable options inside the config.lua and configure them to suit your server's needs. Please read the ”commented out help text” at the end of each line so you can understand what each config option does.
The most important sections are the options under the Framework and Important sections at the top of the config.lua. Everything else is optional.

This works like any other hacking mini-game for FiveM, just more interactive. You would place the export (as seen below) in a robbery script for example, and if the player completes the hack, you can either reward the player or allow them to progress to the next stage. The scoreboard allows players to compete for the bragging rights of who is the best hacker.
The code below can only be placed inside a client.lua file, not a server.lua file.
local example = exports['cd_terminalhacker']:StartTerminalHacking()
if example.success then
print('im a winner')
print(example.time) --Returns the amount of time taken to complete (in seconds).
print(example.score) --Returns the score. (You gain a higher score from downloading more optional files).
else
print('i suck so bad')
end

The point of the hacking game is to find the proper .exe file somewhere in a remote PC's directory. Some .exe files are corrupted and will set you back. (You need to figure which are which). Along your search path, you are supposed to download additional files from the file system and gain a score. Score and time taken to determine the leader board placement, and the server owner can set their own actions based on time and score.

All of these chat commands can be renamed and disabled/enabled in the config/code.
If a command isn't working, make sure the config option for said feature is enabled in the config.lua.
Command
Description
/terminalhacker
(Test Command) This is a test command which opens the terminal hacker UI.

Please check out our Troubleshooting Guide before contacting our support.
🔔 Folder Name Make sure the name of the folder is cd_terminalhacker.

If you see an error code which isn't listed below please open a script support ticket in the Codesign Discord.
Server
Client
N/A
N/A

Files Changed: Not every update requires you to replace the whole folder. We do this because we understand it's a pain to redo the configs for every update.
  • All Files - This means you should delete your old cd_terminalhacker folder, download and add in the latest version, reconfigure the configs folder and restart your server.
  • Specific Files - This means you can simply copy and paste the SPECIFIC new files over the old ones and restart the server.
Update Type: On rare occasions, you are forced to update to the latest version. Mostly due to authentication updates where the old versions will no longer work.
  • Mandatory - This means you MUST update to this new version or the old versions will no longer work.
  • Optional - This means its completely your choice whether you wish to update to the latest version. But we do not offer support for old versions for obvious reasons; they are old.
v3.0.0
v4.0.0
v4.0.1

v3.0.0 - v3.0.4
Files Changed:
  • All files
  • Specific Files
Update Type:
  • Mandatory
  • Optional
Changelog:
Fix
  • Fixed random server error on server start.
  • Fixed a login bug fix.
  • Temporary fix for the canary issue until the new Tebex FiveM license system is ready to launch, when this is released we will be fully switching over to the new system.
  • Fix for terminalhacker not properly resetting after exiting.

Files Changed:
  • All files
  • Specific Files
Update Type:
  • Mandatory
  • Optional
Changelog:
Authentication
  • We are now using the official Authentication System provided by FiveM. The old auth system will be taken offline 1 week from now (give or take a few days if needed).

Files Changed:
  • All files
  • Specific Files
fxmanifest.lua - (IMPORTANT)
server/main/server.lua - (IMPORTANT)
client/main/client.lua - (IMPORTANT)
html (FULL FOLDER) - (IMPORTANT)
Update Type:
  • Mandatory
  • Optional
Changelog:
Authentication
  • Small authentication update to ensure stability.
Copy link
On this page
START HERE
INSTALLATION GUIDE
Step 1 - Configure the resource
Step 2 - Integrate into your resources
INFORMATION
Chat commands
COMMON ISSUES
ERROR CODES
CHANGELOG