QBox

You will receive the script in keymaster.fivem.net profile, after this click in blue "download" button.

After download, put the script in your server files.

  1. Install all dependencies, and follow their respective installation instructions.

Dependencies Part

  • qbx-core

  • jpr-drawSystem ( Included ) ( We offer it out of JPR Police Job to avoid weird HTML bugs )

  • jpr-policeMenus ( included and not mandatory but we recommend for design matches ( you can use any menu, like qb-menu or ox_lib ) )

Download all the scripts by clicking on their respective names, put them in the server files and ensure in server.cfg

SQL

Execute JPR - Police Job.sql file in your SQL

Inventory Setup

Go to qb-core, shared, items.lua, replace phone item line to this ones:

['evidence_bag'] 			 = {['name'] = 'evidence_bag', 			['label'] = 'Empty Evidence Bag', 		['weight'] = 0, 		['type'] = 'item', 		['image'] = 'evidence_bag.png', 			['unique'] = false, 	['useable'] = false, 	['shouldClose'] = false,   ['combinable'] = nil,   ['description'] = 'Used a lot to keep DNA from blood, bullet shells and more'},
['evidence_bag_filled'] 		 = {['name'] = 'evidence_bag_filled', 			['label'] = 'Evidence Bag', 			['weight'] = 200, 		['type'] = 'item', 		['image'] = 'evidence_bag_filled.png', 			['unique'] = true, 		['useable'] = false, 	['shouldClose'] = false,   ['combinable'] = nil,   ['description'] = 'A filled evidence bag to see who committed the crime >:('},
['uv_flashlight']			 = {['name'] = 'uv_flashlight',				['label'] = 'UV Flashlight',				['weight'] = 1000,		['type'] = 'item',	['ammotype'] = nil,						['image'] = 'uv_flashlight.png',	['unique'] = true,		['useable'] = true,	['description'] = 'A battery-operated UV portable light'},
['clothe']			 = {['name'] = 'clothe',				['label'] = 'Clothe',				['weight'] = 1000,		['type'] = 'item',	['ammotype'] = nil,						['image'] = 'clothe.png',	['unique'] = true,		['useable'] = true,	['description'] = 'Ideal to clean some surfaces..'},
['police_tracker']			 = {['name'] = 'police_tracker',				['label'] = 'Police Tracker',				['weight'] = 1000,		['type'] = 'item',	['ammotype'] = nil,						['image'] = 'police_tracker.png',	['unique'] = true,		['useable'] = true,	['description'] = 'Dont try to use, its just for police officers..'},
['handcuffs'] 				 	 = {['name'] = 'handcuffs', 			    	['label'] = 'Handcuffs', 				['weight'] = 100, 		['type'] = 'item', 		['image'] = 'handcuffs.png', 			['unique'] = false, 	['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'Comes in handy when people misbehave. Maybe it can be used for something else?'},	

inventory > html > js > app.js > FormatItemInfo function, follow default examples and add this:

( Inventory buyers dont need this step )

else if (itemData.name == "evidence_bag_filled") {
    $(".item-info-title").html("<p>" + itemData.label + "</p>");

    if (itemData.info.evidenceType == "casing") {
        $(".item-info-description").html(
            "<p><strong>Type: </strong><span>" +
            "Casing" +
            "</span></p>"+
            "<p><strong>Localization: </strong><span>" +
            itemData.info.localization +
            "</span></p>"+
            "<p><strong>Ammo: </strong><span>" +
            itemData.info.ammo +
            "</span></p>"+
            "<p><strong>Weapon: </strong><span>" +
            itemData.info.weapon +
            "</span></p>"+
            "<p><strong>Evidence ID: </strong><span>" +
            itemData.info.evidenceID +
            "</span></p>"
        );
    } else if (itemData.info.evidenceType == "blood") {
        $(".item-info-description").html(
            "<p><strong>Type: </strong><span>" +
            "Blood" +
            "</span></p>"+
            "<p><strong>Localization: </strong><span>" +
            itemData.info.localization +
            "</span></p>"+
            "<p><strong>Match: </strong><span>" +
            itemData.info.match +
            "</span></p>"+
            "<p><strong>Evidence ID: </strong><span>" +
            itemData.info.evidenceID +
            "</span></p>"
        );
    } else if (itemData.info.evidenceType == "fingerprint") {
        $(".item-info-description").html(
            "<p><strong>Type: </strong><span>" +
            "Fingerprint" +
            "</span></p>"+
            "<p><strong>Localization: </strong><span>" +
            itemData.info.localization +
            "</span></p>"+
            "<p><strong>Match: </strong><span>" +
            itemData.info.match +
            "</span></p>"+
            "<p><strong>Vehicle Plate: </strong><span>" +
            itemData.info.plate +
            "</span></p>"+
            "<p><strong>Evidence ID: </strong><span>" +
            itemData.info.evidenceID +
            "</span></p>"
        );
    }
}

Body Cam Setup

We will add some tutorials we did for phone system, is exatcly same, the localization to change tokens etc.. is on: jpr-policejob / configs / general_config.lua > Config.UploadSystem

Follow this little video to know how to use Fivemanage for media uploads:

Using Fivemerr

Follow this little video to know how to use Fivemerr for media uploads:

Last updated