Installation

Add Job

This step can be skipped if you want to use a different job. This can be configured in the config file.

qb-core/shared/jobs.lua
	judge = {
		label = "Department of Justice",
		defaultDuty = true, offDutyPay = false,
		grades = {['0'] = {name = "Judge", payment = 175}},
	},

Database

A .sql file is provided within the folder if needed.

However, the script should automatically create the required table on the first start.

Optional

Item Integration

Dependency: ox_inventory

Opens the judges' menu through an item. The inserted export does a job check on use.

ox_inventory/data/items.lua
	["tablet_judge"] = {
		label = "Judge's Tablet",
		weight = 350,
		stack = false,
		close = true,
		description = "A tool of legal precision",
		client = {
			export = "r1-courtcases.OpenMenuJudge"
		},
	},

Last updated