L3THDocs

Scripts

Advanced Electrical Job

Someone's gotta keep the lights on. Crews fix electrical faults across the city through a timed wiring puzzle.

Requires
ox_lib
Frameworks
ox, qb, qbx & esx, switch with one config line
Target & inventory
ox or qb, or your own
Vehicle keys
qbx or qb, or your own
Latest version 1.1.1 View in store

#Install

  1. #Install dependencies

    Install (or update) ox_lib, and start it before this script in your server.cfg.

    github.com/CommunityOx/ox_lib/releases

    0

  2. #Check your inventory, target, keys and notify

    Besides ox_lib, the script needs an inventory, a target, vehicle keys and notifications. Pick yours under system in configs/cl_config.lua: ox and qb resources work out of the box, and qbx_vehiclekeys or qb-vehiclekeys for keys.

    Using something else? Make your own in utils/cl_utils.lua and utils/sv_utils.lua. These are the calls the script makes, shown with the ox and Qbox resources:

    lua
    -- Server side
    return exports.ox_inventory:AddItem(source, item, count, metadata or nil)
  3. #Pick a minigame

    Repairs use a minigame. The built-in one works straight away, or pick one you already run with minigame under system in configs/cl_config.lua:

    SettingMinigame
    'l3th'Built-in (default), nothing to install
    'ox'ox_lib skill check
    'tgg', 'akilla', 'jomidar', 'lunar', 'glitch'That minigame resource, if you have it

    Want another one? Add it in utils/cl_utils.lua.

  4. #Start the script

    • Put the l3th-electricaljob folder in your resources folder
    • Add ensure l3th-electricaljob to your server.cfg, after its dependencies
    • Restart the server

#Configuration

Go through configs/cl_config.lua and configs/sv_config.lua and set them up to your liking.

#Need help?

Most issues come from a missing dependency or the wrong start order in server.cfg, so run through the steps once more first. Still stuck? See Common problems or open a ticket on Discord.