BIT - DOCUMENTATION
  • BIT DOCUMENTATION
  • â„šī¸INFORMATION
    • Licensing System
    • Terms of Service
    • Common issues
    • Support
  • ❓HOW TO...
    • Change inventory
      • Add Item
      • Remove Item
    • How to update an asset
    • How to add items
    • Items images
    • Change notifications
  • đŸ–Ĩī¸PAID SCRIPTS
    • đŸ’ŗ BIT-Licenses
      • Installation
      • Commands
      • Triggers & Exports
      • Items
    • đŸĻ  BIT-Diseases
      • Installation
      • Triggers, Export and Commands
    • 🔓 BIT-Unlock
      • Installation
      • Trigger
      • How it works?
    • 🔊 BIT-Radio
      • Installation
      • Configuration
      • Trigger
      • Items
    • 💊 BIT-DrugsCreator
      • Installation
      • Configuration
      • Trigger
      • Target
    • âš ī¸ BIT-Notifications
      • Installation
      • Configuration
      • Trigger
    • đŸ–ī¸BIT-InteractiveCity
      • Installation
      • Dependencies
      • Configuration
      • Actions
      • Target
    • 🚘 BIT-UsedCars
      • Installation
      • Dependencies
      • Configuration
      • Target
    • đŸ—‘ī¸ BIT-GarbageJob
      • Installation
      • Dependencies
      • Configuration
      • Target
      • Items
    • đŸ› ī¸ BIT-AdvancedTasks
      • Installation
      • Dependencies
      • Custom Voices
      • Custom NPC
      • Rewards
      • Target
    • 🏆 BIT-Rewards
      • Installation
      • SQL
      • Configuration
      • Trigger
    • 📊 BIT-Scoreboard
      • Installation
      • Configuration
    • đŸ›ī¸ BIT-Stores
      • Installation
      • Example Items
      • Configuration
      • Create a polyzone
      • Add Items
    • đŸ”Ē BIT-Gangs
      • Installation
      • SQL and Items
      • Configuration
      • Triggers and Exports
    • đŸ’ŧ BIT-Jobs
      • Installation
      • SQL and Items
      • Create Jobs
      • ProgressBar
      • Configuration
      • Add Jobs
      • Random position
      • Triggers
      • Possible mistakes
    • 🏨 BIT-Motels
      • Installation
      • MLO
      • SQL
      • Configuration
      • Triggers
    • 👗 BIT-ClothingShop v.2
      • Installation
      • Create Images
      • Image Resolution
      • Debug & Test
      • SQL
      • Configuration
      • Possible mistakes
    • ✨ BIT-Creator
      • Installation
      • SQL
      • Configuration
      • Triggers
    • đŸĸ BIT-Business 2.0
      • Installation
      • SQL
      • Configuration
      • Colors
      • Income
      • Payment Methods
    • 🚗 BIT-Garage
      • Installation
      • Dependencies
      • Configuration
      • Functions
      • Jobs/Gangs
      • Triggers
      • Commands
      • Possible mistakes
    • 🚘 BIT-VehControl
      • Installation
      • Dependencies
      • Configuration
      • Triggers
      • Possible mistakes
    • 🐾 BIT-Pets
      • Installation
      • SQL
      • Dependencies
      • Configuration
      • Target
      • Triggers
      • Questions
      • Possible mistakes
    • đŸ‘Žâ€â™‚ī¸ BIT-PoliceMDT
      • Installation
      • SQL
      • Configuration
      • Dependencies
      • Triggers
      • Possible mistakes
    • â›Ŋ BIT-Fuel
      • Installation
      • Configuration
      • Exports
      • Questions
    • 💰 BIT-Crypto
      • Installation
      • SQL
      • Configuration
      • Triggers & Exports
      • Questions
    • 🚙 BIT-Carrental
      • Installation
      • Configuration
    • đŸ“ģ BIT-Carradio
      • Installation
      • Dependencies
      • Configuration
    • 📝 BIT-Reportsystem
      • Installation
      • SQL
      • Configuration
      • Questions
    • đŸšĻBIT-Drivingschool
      • Installation
      • SQL
      • MLO
      • Configuration
      • Triggers
      • Add routes
      • License Item
      • Transcription
    • ⚓ BIT-BoatSchool
      • Installation
      • SQL
      • Configuration
      • Triggers
      • Add routes
      • License Item
      • Transcription
    • đŸ›Šī¸ BIT-Flightschool
      • Installation
      • SQL
      • Configuration
      • Triggers
      • Add routes
      • License Item
      • Transcription
    • 🚜 BIT-Dealership
      • Installation
      • Configuration
      • Possible mistakes
    • đŸĒ™ BIT-Coin System
      • Installation
      • Configuration
      • Trigger
    • đŸĻ BIT-Bank
      • Installation
      • SQL
      • Configuration
    • đŸ–Ĩī¸ BIT-HUD
      • Installation
      • Configuration
      • Triggers
    • 🎮 BIT-Battlepass 3
      • Installation
      • SQL
      • Configuration
      • Commands
      • Triggers
      • Questions
      • Possible mistakes
    • 📋 BIT-Pausemenu
      • Installation
      • SQL
      • Configuration
    • đŸ“Ļ BIT-TreasureHunting
      • Installation
      • Dependencies
      • Configuration
      • Target
Powered by GitBook
On this page
  • ESX
  • QB
  1. PAID SCRIPTS
  2. đŸ’ŧ BIT-Jobs

Create Jobs

If you want to make the assignment mandatory, you must create the jobs in your core. Either in QB or in ESX.

You will also have to change the scritp configuration in the config.lua file to make it required:

Config.jobRequired = true

Below are the default jobs that you should create in your core.

ESX

If you use ESX you will have to create the jobs from the database. Pass the following query to create them:

INSERT INTO jobs (name, label) VALUES 
('lumberjack', 'Lumberjack'),
('electrician', 'Electrician'),
('oiltechnician', 'Oil Technician'),
('fisherman', 'Fisherman'),
('coffeefarmer', 'Coffee Farmer'),
('baker', 'Baker'),
('tailor', 'Tailor'),
('scientist', 'Scientist');

INSERT INTO job_grades (job_name, grade, name, label, salary, skin_male, skin_female) VALUES 
('lumberjack', 0, 'employee', 'Employee', 50, '{}', '{}'),
('electrician', 0, 'employee', 'Employee', 50, '{}', '{}'),
('oiltechnician', 0, 'employee', 'Employee', 50, '{}', '{}'),
('fisherman', 0, 'employee', 'Employee', 50, '{}', '{}'),
('coffeefarmer', 0, 'employee', 'Employee', 50, '{}', '{}'),
('baker', 0, 'employee', 'Employee', 50, '{}', '{}'),
('tailor', 0, 'employee', 'Employee', 50, '{}', '{}'),
('scientist', 0, 'employee', 'Employee', 50, '{}', '{}');

QB

To create the jobs in QB you will have to modify the file located in the following path of your server resources/[qb]/qb-core/shared/jobs.lua

Simply copy and paste the following:

--bit-jobs
miner = {
	label = 'Miner',
	defaultDuty = true,
	offDutyPay = false,
	grades = {
		['0'] = { name = 'Employee', payment = 50 },
	},
},
lumberjack = {
	label = 'Lumberjack',
	defaultDuty = true,
	offDutyPay = false,
	grades = {
		['0'] = { name = 'Employee', payment = 50 },
	},
},
electrician = {
	label = 'Electrician',
	defaultDuty = true,
	offDutyPay = false,
	grades = {
		['0'] = { name = 'Employee', payment = 50 },
	},
},
oiltechnician = {
	label = 'Oil Technician',
	defaultDuty = true,
	offDutyPay = false,
	grades = {
		['0'] = { name = 'Employee', payment = 50 },
	},
},
fisherman = {
	label = 'Fisherman',
	defaultDuty = true,
	offDutyPay = false,
	grades = {
		['0'] = { name = 'Employee', payment = 50 },
	},
},
coffeefarmer = {
	label = 'Coffee Farmer',
	defaultDuty = true,
	offDutyPay = false,
	grades = {
		['0'] = { name = 'Employee', payment = 50 },
	},
},
baker = {
	label = 'Baker',
	defaultDuty = true,
	offDutyPay = false,
	grades = {
		['0'] = { name = 'Employee', payment = 50 },
	},
},
tailor = {
	label = 'Tailor',
	defaultDuty = true,
	offDutyPay = false,
	grades = {
		['0'] = { name = 'Employee', payment = 50 },
	},
},
scientist = {
	label = 'Scientist',
	defaultDuty = true,
	offDutyPay = false,
	grades = {
		['0'] = { name = 'Employee', payment = 50 },
	},
},
PreviousSQL and ItemsNextProgressBar

Last updated 1 year ago

đŸ–Ĩī¸