QBCORE DEPENDENCIES
| Dependency | Install | Description |
|---|---|---|
| QB-Target | Optional if using other target system stated. | For use of using 3rd eye features. |
| Q-Target | Optional if using other target system stated. | For use of using 3rd eye features. |
| QB-MENU/OX LIBS | Required | This normally is included in the QBCore install so check if you have before downloading. |
| QB-INPUT/OX LIBS | Required | This normally is included in the QBCore install so check if you have before downloading. |
| BCS Questionnaire | Required | This script controls the exam for the bar test. |
STEP BY STEP
Extract Resource Files
Extract the ap-court.zip file into your server’s resources folder. Ensure the folder is named correctly (e.g. ap-court).
Install & Ensure Dependencies
Make sure all required dependencies are installed and started before this resource. Add the following to your server.cfg if not already present:
ensure ap-courtImport Database SQL
Locate the included .sql file inside the resource and import it into your database. You can do this via: phpMyAdmin Adminer Command line (MySQL)
Configure the Script
Open the config.lua file and adjust settings to match your server. Make sure to: Enable your preferred target system (e.g. ox_target / qb-target) Set job roles, permissions, and locations Review any framework-specific options
Restart Server
Restart your server to apply all changes.
OX LIBS (AP COURT v.1.1)
Make sure to uncomment ox lib from the fxmanifest.lua in the script folder if you want to use OX context and dialog.
--'@ox_lib/init.lua', -- UNCOMMENT THIS IF YOUR USING OX LIBSMetaData Setup (AP COURT v.1.1)
Add These to your QB inventory
qb-inventory\html\js\app.lua - Add the example below at the bottom of the JS file. Make sure to set QB to true in the Config.LawyerIDMetaData section.
} else if (itemData.name == "lawyerpass") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Bar ID: </strong><span>" +
itemData.info.baridnumber +
"</span></p><p><strong>Full Name: </strong><span>" +
itemData.info.lawyername +
"</span></p>"
);
Add These to QB-CORE Shared Items.lua
qb-core\shared\items.lua - Add the example below at the bottom of the items file.
['lawyerpass'] = {
['name'] = 'lawyerpass',
['label'] = 'Lawyer Pass',
['weight'] = 0,
['type'] = 'item',
['image'] = 'lawyerpass.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Pass exclusive to lawyers to show they can represent a suspect'
},