Skip to content

Latest commit

 

History

History
98 lines (70 loc) · 3.24 KB

README.md

File metadata and controls

98 lines (70 loc) · 3.24 KB

📡 qb-telco

Communications Technician job For QB-Core

CodeQL

Todo:

  • 💰Pay
  • 💲Bonus pay
  • 🔍Job Required "telco"
  • 📍Blip and Update Blip
  • 🔨Required tool's on Inventory
  • 🔩Consume metals ,
  • coords to vector3
  • Requirements Tool and Materials per task , all on config.lua
  • ⚡Power system, use BuilderData.ShowDetails, to turn off the antenna before working, if you work without displaying "ShowDetails" you can be electrocuted by a random, (add Tazzer animation )
  • ⚡ FuseBox minigame to PowerOff electricity by Tinus_NL
  • 🚐 Work car ( request by @nzkfc )
  • 🏢 Blip building location ( request by @nzkfc )
  • 🐌 Colddown to prevent multispawn vehicle. (30 minutes)

Wishlist:

  • 📌 Blips's in task's

Video Demo

Add job to Qb-core (⭐Required)

Edit the file : /resources/[qb]/qb-core/shared.lua and add the job in QBShared.Jobs = {

	["telco"] = {
		label = "Technician",
		defaultDuty = true,
		grades = {
            ['0'] = {
                name = "Communications",
                payment = 50
            },
        },
        },

Add work to city hall

Step 1

Edit the file : resources/[qb]/qb-cityhall/client/main.lua and add "telco", to list jobs, example of how it should look:

local AvailableJobs = {
    "trucker",
    "taxi",
    "tow",
    "reporter",
    "garbage",
    "telco",
}

Step 2

To be able to select the job in the game we must modify the file resources/[qb]/qb-cityhall/html/index.html and add <div class="job-page-block" data-job="telco"><p>Telco Engineer</p></div> to class="job-page-blocks, example of how it should look:

                    <div class="job-page-blocks">
                        <div class="job-page-block" data-job="trucker"><p>Trucker</p></div>
                        <div class="job-page-block" data-job="taxi"><p>Taxi</p></div>
                        <div class="job-page-block" data-job="tow"><p>Tow Truck</p></div>
                        <div class="job-page-block" data-job="reporter"><p>News reporter</p></div>
                        <div class="job-page-block" data-job="garbage"><p>Garbage collector</p></div>
                        <div class="job-page-block" data-job="telco"><p>Telco Engineer</p></div>
                    </div>

❤ Based on

qb-builderjob, qb-vineyard, qb-truckerjob

Qb-core FiveM RP Framework


Fuse Box

Qb-telco-demo

A special thanks to Tinus_NL original author of the esx_technician module "fuse box", who authorized the use of the files and part of the code in this module..