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-dispatch or an equivalent dispatch system if alerts are enabled.


Step 2: Install the Resource

  1. Drag and drop the v42-terminal folder into your server’s resources directory.

  2. Add the following line to your server.cfg after all dependencies:

ensure v42-terminal

Step 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.SendPoliceAlerttrue or false to enable alerts

  • Config.PoliceMessageTile – Dispatch title (e.g., 'Silent Alarm')

  • Config.PoliceMessage – Dispatch message text

  • Config.AlertType – Set to 'ps' for ps-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 /terminalhack is included for testing. 🧹 Remove example.lua from the client/ 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-terminal
  • Or restart your server


Notes

  • Standalone and lightweight

  • Alerts work best with ps-dispatch or a custom system

  • Great for banks, tech heists, terminals, or access control systems

  • Fully adaptable via exports — you control the outcome logic

Last updated