Installation
DEPENDENCIES
REQUIRED DEPENDENCIES
OPTIONAL DEPENDENCIES (IF NOT ADDED, YOU'LL HAVE TO SET THEM TO FALSE IN CONFIG)
RESOURCE INSTALLATION GUIDE
1) RESOURCE DOWNLOAD
Download your resource from FiveM's Keymaster.
2) RESOURCE POSITIONING
You need to make sure that apex_lib is always started before any of our scripts!
3) ASSET ADDING
Open apex_lawenforcement > assets > inventory_images
Copy files from the folder and add them into your inventory image folder
Open apex_lawenforcement > assets > sounds
Copy files from the folder and add into your interaction sounds
4) ITEM ADDING
5) JOB ADDING
6) HANDCUFF EXPORT
There is a short line of code, that you'll have to adjust, follow the list of steps below:
Find the file: qb-smallresources > client > handsup.lua
Find the line:
And delete it or make it like below:
If you have this export in other scripts, repeat the process.
7) OX_INVENTORY
If you are using ox_inventory and want to use the breakout minigame. You'll need to do the following:
Find the file: ox_inventory > modules > bridge > qb > client.lua
Find this code:
Remove or comment the code.
If this isn't removed or commented. They player will not be able to access their inventory, if they break out of cuffs.
8) RADIAL MENU
In your Radial Menu script, you'll have to remove a section of code to prevent having 2 menus for the policejob.
Find the file: qb-radialmenu > config.lua
Go to line 569 (This is unedited config file):
Find this code:
Remove or comment the code.
9) QB-PRISON
To be able to use qb-prison with our Law Enforcement Script, you'll have to adjust some code, please do as follow:
Find the file: qb-prison > client > main.lua
Find the line:
And replace that with:
In other words, replace: qb-policejob
with apex_lawenforcement
Last updated