Installation

Please follow these instructions carefully if you do so you should have no issues, if you do still experience issues after reading through all of this then please make a ticket in discord.

DEPENDENCIES

You will need the following resources installed to be able to use this script properly, please ensure this is possible before buying the script My Library Dirk Core Frameworks QBCore ESX Legacy vRP ( Support is not garaunteed as I do not personally use this framework )

Inventories ox_inventory qb-inventory lj-inventory mf-inventory qs-inventory core_inventory

Inventory Instructions

ESX items.sql

You will need to run this SQL file if you use ESX

INSERT INTO `items` (name, label) VALUES
  ('bountytablet','Bounty Tablet')
;

OX_INVENTORY

In order for this to work you will need to add the following to your ox_inventory/data/items.lua

['bountytablet'] = {          
  label      = "Bounty Tablet",
  weight     = 250,
  allowArmed = false,
},      

QB-INVENTORY

Items will auto add to your shared.lua if you are on a compatible version of qb-core and AutoAddItems is enabled within dirk-core however below I have listed the items should you wish to manually add them

['bountytablet'] = {
  ["name"]        = "bountytablet", 
  ["label"]       = "Bounty Tablet", 
  ["weight"]      = 500, 
  ["type"]        = "item",
  ["image"]       = "bountytablet.png", 
  ["unique"]      = true,
  ["useable"]     = true,
  ["shouldClose"] = true,
  ["combinable"]  = nil,
  ["description"] = "A tablet used by bounty hunters to see current contracts for their office",
},

Vehicle Seizing SQL

In order for the vehicle seizing system to work properly you will need to install the SQL's found within dirk-bountiesv2/INSTALLATION/install_sql make sure you choose the one that corresponds with your framework. WARNING

This is setup up for base QB and ESX vehicle SQL structures, you are free to edit these functions within dirk-bountiesv2/src/server/open_functions.lua to suit your garage/framework

fxmanifest.lua

You will need to edit the fxmanifest.lua if you do not use oxmysql, see example below.

server_script {
  '@mysql-async/lib/MySQL.lua', -- Uncomment if not using oxmysql
  --'@oxmysql/lib/MySQL.lua', -- Comment out if not using oxmysql

  'usersettings/config.lua',
  'usersettings/bountyoffices.lua',
  'usersettings/licenses.lua',
  'usersettings/labels.lua',
  'src/server/open_functions.lua',
  'src/server/functions.lua'
}

Last updated