Links

ds-electrician

Electrician Job for QBCore & ESX

Installaction

Dependencies

Dependency
Download
Description
calibrate-distributor
Link
minigame to job
qb-target (Optional)
Link
you need eye target script if you don't want to use drawtext

Start

  1. 1.
    Extract ds-electrician.zip and place it into your resource folder.
  2. 2.
    Install and ensure dependencies for the resource.
  3. 3.
    Setupconfig.lua (⚠️see #CONFIGURATION for instructions).
  4. 4.
    Addensure ds-electrician to your server start config (place it anywhere below the dependency & framework resources).

Configuration

Please go through all configurable options & settings in config.lua and configure them to your server's preferences.
Also please read the comments at the end of each line, for a brief information on what the option does.

Add Job (Optional)

QBCore
ESX

Open qb-core/shared/jobs.luaand add this lines

['electrician'] = {
label = 'Electrician',
defaultDuty = true,
offDutyPay = false,
grades = {
['0'] = {
name = 'Recruit',
payment = 10
},
},
},

Run this query in database

INSERT INTO jobs (name, label, whitelisted) VALUES ('electrician', 'Electrician', 0);
INSERT INTO job_grades (job_name, grade, name, label, salary, skin_male, skin_female) VALUES ('electrician', 0, 'recruit', 'Recruit', 20, '{}', '{}');

Add Items

QBCore
ESX
Images

Open qb-core/shared/items.luaand add this lines

["repairtool"] = {
["name"] = "repairtool",
["label"] = "Repair Tool",
["weight"] = 0,
["type"] = "item",
["image"] = "repairtool.png",
["unique"] = false,
["useable"] = true,
["shouldClose"] = false,
["combinable"] = nil,
["description"] = "Repair tool for Electrician"
},
["eletool"] = {
["name"] = "eletool",
["label"] = "Electrician Tools",
["weight"] = 0,
["type"] = "item",
["image"] = "repairtool.png",
["unique"] = false,
["useable"] = true,
["shouldClose"] = false,
["combinable"] = nil,
["description"] = "Tool box for Electrician"
},

Run this query in database

INSERT INTO items (name, label, weight, rare, can_remove) VALUES ('repairtool', 'Repair Tool', 1, 0, 1), ('eletool', 'Electrician Tool', 2, 0, 1);
Last modified 4mo ago