Installation
Installation Guide – v42-Terminal
Step 1: Ensure All Dependencies Are Installed
Before proceeding, confirm that all required dependencies for your framework (QBCore or ESX) are:
Installed
Running properly
Using the latest stable versions
✅ This script is standalone, but for full functionality, you’ll want
ps-dispatchor an equivalent dispatch system if alerts are enabled.
Step 2: Install the Resource
Drag and drop the
v42-terminalfolder into your server’sresourcesdirectory.Add the following line to your
server.cfgafter all dependencies:
ensure v42-terminalStep 3: Add Items & Images
❗ Not required for this resource unless integrated with inventory or loot systems you create afterward.
If using item-based triggers (e.g., a "laptop" or "hacking device"), make sure those items are defined in your inventory system and UI.
Step 4: Import SQL Files
This script does not require SQL files by default.
Step 5: Configure the Script
Open config.lua and configure the following options:
Config.CoreName– Set to your framework core (e.g.,'qb-core')Config.CopJob– Job name for police (e.g.,'police')Config.SendPoliceAlert–trueorfalseto enable alertsConfig.PoliceMessageTile– Dispatch title (e.g.,'Silent Alarm')Config.PoliceMessage– Dispatch message textConfig.AlertType– Set to'ps'forps-dispatch, or leave default
Step 6: Using the Export
Call the terminal hack minigame from your own scripts using the following export:
exports['v42-terminal']:TerminalHack(function(success)
if success then
-- Do something (e.g., give loot, open vault)
else
-- Failed: send alert, notify police, etc.
end
end, 60) -- 60 seconds to complete the hack🧪 Example command
/terminalhackis included for testing. 🧹 Removeexample.luafrom theclient/folder if you no longer need the demo.
Step 7: Start or Restart the Server
To apply all changes:
Run the following in your server console or F8:
refresh ensure v42-terminalOr restart your server
Notes
Standalone and lightweight
Alerts work best with
ps-dispatchor a custom systemGreat for banks, tech heists, terminals, or access control systems
Fully adaptable via exports — you control the outcome logic
Last updated
