AP Scripts Documentation
  • AP Scripts Documentation
  • Scripts
    • AP Court
    • AP Government
    • AP Documents
    • AP AddonJob
    • AP Questionnaire
  • Recommended Phone
  • Script Snippets
  • Phone Integrations
Powered by GitBook
On this page
  • QBCore INSTALLATION
  • SUPPORTED MENU & DIALOG SCRIPTS
  • STEP BY STEP
  • SQL
  1. Scripts

AP AddonJob

Documentation & support for AP AddonJob.

PreviousAP DocumentsNextAP Questionnaire

Last updated 3 months ago

QBCore INSTALLATION

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

This normally is included in the QBCore install so check if you have before downloading.

OX Libs (Context & Input)

One resource for both context and input.

STEP BY STEP

  1. Extract ap-addonjob.zip file.

  2. Inset SQL file into your database.

  3. Setup your config file with how you want it, make sure you enable the correct inventory that you have including menu/dialog.

  4. Make sure you have the admin rank in game and use the command to start adding jobs:

    /manage:addonjobmenu -- Admin Command

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.

Manual SQL Entries
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;

Menu Link
Input Link
Link
|
Tebex Link
Script Showcase