Dolaji's Scripts
StoreDiscordYoutube
  • Our Scripts
  • Resources
    • calibrate-distributor
    • ds-drilling
    • ds-atmrobbery
    • ds-fruitpicker
    • ds-milkjob
    • ds-cutscene
    • ds-mining
    • ds-electrician
    • weazel-news
  • RedM
    • ID Card
Powered by GitBook
On this page
  • Installaction
  • Dependencies
  • Start
  • Configuration
  • Add Job (Optional)
  • Add Items
  1. Resources

ds-electrician

Electrician Job for QBCore & ESX

Previousds-miningNextweazel-news

Last updated 1 year ago

| | |

Installaction

Dependencies

Dependency
Download
Description

calibrate-distributor

minigame to job

qb-target (Optional)

you need eye target script if you don't want to use drawtext

Start

  1. Extract ds-electrician.zip and place it into your resource folder.

  2. 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)

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

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);

Install and ensure for the resource.

Setupconfig.lua (⚠️see for instructions).

Download Link
dependencies
#CONFIGURATION
Link
Link
View on Tebex
CFX Fourm Post
Youtube Video
Discord