SUPPORTED MENU & DIALOG SCRIPTS
Here are the supported scripts for the menu and dialog preconfigured for the addonjob script. menu.lua which is located in the client folder of the addonjob script is fully editable, which means you can configure it with another menu/dialog script you might use if you don't use the supported ones.
| Supported Menu/Dialogs | Links | Description |
|---|---|---|
| QB-MENU & QB-INPUT | https://github.com/qbcore-framework/qb-menu https://github.com/qbcore-framework/qb-input | This normally is included in the QBCore install so check if you have before downloading. |
| OX Libs (Context & Input) | https://github.com/overextended/ox_lib/releases | One resource for both context and input. |
Extract the Resource
Extract the ap-addonjob.zip file into your server’s resources folder. Ensure the folder is named ap-addonjob.
Import the SQL File
Locate the included .sql file and import it into your database using a tool such as phpMyAdmin or Adminer.
Configure the Script
Open the config.lua file and set it up to match your server. Make sure to: Select the correct inventory system Configure your menu/dialog system Adjust any additional settings as needed
Setup Jobs In-Game
Ensure you have the correct admin permissions in-game. From here you can: Create new addon jobs Configure job roles and settings Manage existing jobs Use the following command to open the job management menu:
/manage:addonjobmenuRestart Server
Restart your server to apply all changes.
SQL
Please note, there is an SQL file. You will need to import it in order for the script to run. You can open the respective SQL file, copy the queries and execute/run them in your database manually (my personal preferred way) or you can import the file.
CREATE TABLE IF NOT EXISTS `ap_addonapplications` (
`applicationID` varchar(50) DEFAULT NULL,
`data` longtext DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
CREATE TABLE IF NOT EXISTS `ap_addonjob` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`enable` varchar(50) DEFAULT NULL,
`job` varchar(100) DEFAULT NULL,
`boss_rank` varchar(50) DEFAULT NULL,
`coords` longtext DEFAULT '[]',
`ped` varchar(50) DEFAULT NULL,
`webhook` varchar(200) DEFAULT NULL,
`management` longtext DEFAULT '[]',
`appointments` longtext DEFAULT '[]',
`applications` longtext DEFAULT '[]',
`template` longtext DEFAULT '[]',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;