QBCORE COURT INSTALLATION

3 min readLast updated

QBCORE DEPENDENCIES

DependencyInstallDescription
QB-TargetOptional 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 RequiredThis normally is included in the QBCore install so check if you have before downloading.
QB-INPUT/OX LIBSRequiredThis normally is included in the QBCore install so check if you have before downloading.
BCS Questionnaire RequiredThis script controls the exam for the bar test.

STEP BY STEP

1

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).

2

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:

lua
1
ensure ap-court
3

Import 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)

4

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

5

Restart Server

Restart your server to apply all changes.

OX LIBS (AP COURT v.1.1)

Info

Make sure to uncomment ox lib from the fxmanifest.lua in the script folder if you want to use OX context and dialog.

lua
1
--'@ox_lib/init.lua', -- UNCOMMENT THIS IF YOUR USING OX LIBS

MetaData Setup (AP COURT v.1.1)

Info

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.

javascript
1
2
3
4
5
6
7
8
9
10
11

      } 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>"
            );
Info

Add These to QB-CORE Shared Items.lua

qb-core\shared\items.lua - Add the example below at the bottom of the items file.

lua
1
2
3
4
5
6
7
8
9
10
11
12
['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'
},

Was this page helpful?

© 2026 AP Scripts. Engineered for excellence.