🛠ī¸Installation

qb-core/shared/jobs.lua:

['investigation'] = {
    label = 'Police Investigation',
    defaultDuty = true,
    offDutyPay = false,
    grades = {
        ['0'] = { name = 'Recruit', payment = 50 },
        ['1'] = { name = 'Employee', payment = 75},
        ['2'] = { name = 'Manager', payment = 100},
        ['3'] = { name = 'Chief', isboss = true, payment = 150 },
    },
},

qb-core/shared/items.lua:

["complaint"] 				= {["name"] = "complaint", 				["label"] = "Complaint", 		["weight"] = 25, 		["type"] = "item", 		["image"] = "complaint.png", 			["unique"] = true,   	["useable"] = true,    ["shouldClose"] = false,    ["combinable"] = nil,   ["description"] = ""},

qb-inventory/html/js/app.js or lj-inventory/html/js/app.js

} else if (itemData.name == "complaint") {
    $(".item-info-title").html("<p>" + itemData.label + "</p>");
    $(".item-info-description").html(
        "<p><strong>Name: </strong><span>" +
        itemData.info.name +
        "<p><strong>Number: </strong><span>" +
        itemData.info.number +
        "<p><strong>Date: </strong><span>" +
        itemData.info.date +
        "</span></p><p><strong>Complaint Type: </strong><span>" +
        itemData.info.complainttype +
        "</span></p><p><strong>Observations: </strong><span>" +
        itemData.info.observations +
        "</span></p>"
    );

qs-inventory/config/config_metadata.js

} else if (itemData.name == "complaint") {
    $(".item-info-title").html("<p>" + itemData.label + "</p>");
    $(".item-info-description").html(
        "<p><strong>Name: </strong><span>" +
        itemData.info.name +
        "<p><strong>Number: </strong><span>" +
        itemData.info.number +
        "<p><strong>Date: </strong><span>" +
        itemData.info.date +
        "</span></p><p><strong>Complaint Type: </strong><span>" +
        itemData.info.complainttype +
        "</span></p><p><strong>Observations: </strong><span>" +
        itemData.info.observations +
        "</span></p>"
    );

qb-radialmenu/config.lua

- Inside of Config.JobInteractions = {

["investigation"] = {
    {
        id = 'civilinformation',
        title = 'Civil Information',
        icon = 'user',
        type = 'client',
        event = 'm-Investigation:Client:GetInfo',
        shouldClose = true
    },
    {
        id = 'personalevidence',
        title = 'Personal Evidence',
        icon = 'box',
        type = 'client',
        event = 'm-Investigation:Client:OpenMenuPersonalEvidences',
        shouldClose = true
    },
    {
        id = 'generalevidence',
        title = 'General Evidence',
        icon = 'box',
        type = 'client',
        event = 'm-Investigation:Client:OpenMenuGeneralEvidences',
        shouldClose = true
    },
},

Important Information

Please read all files on folder configs, you have so much things to change.

This work can be used together with your police. For this, they will have to authorize, for example, this job evidence. To do this, we will make these changes:

qb-policejob/client/evidence.lua - Line 318

  • You have: if PlayerJob.name == 'police' and onDuty then

  • Replace: if PlayerJob.name == 'police' or PlayerJob.name == 'investigation' and onDuty then*

qb-policejob/server/main.lua - Line 215

  • You have: if Player.PlayerData.job.name == "police" and Player.PlayerData.job.onduty then

  • Replace: if Player.PlayerData.job.name == "police" or Player.PlayerData.job.name == "investigation" and Player.PlayerData.job.onduty then

qb-policejob/server/main.lua - Line 253

  • You have: if Player.PlayerData.job.name == "police" and Player.PlayerData.job.onduty then

  • Replace: if Player.PlayerData.job.name == "police" or Player.PlayerData.job.name == "investigation" and Player.PlayerData.job.onduty then

qb-policejob/server/main.lua - Line 448

  • You have: if ((Player.PlayerData.job.name == "police") and Player.PlayerData.job.onduty) and OtherPlayer then

  • Replace: if ((Player.PlayerData.job.name == "police" or Player.PlayerData.job.name == "investigation") and Player.PlayerData.job.onduty) and OtherPlayer then

Last updated