Installation

Dependencies

QBCore Framework qb-target or ox_target ps-dispatch - (https://github.com/Project-Sloth/ps-dispatch) ps-ui - (https://github.com/Project-Sloth/ps-ui)


How to install

Add the following item to yourinventory/data/items.lua QBCore users to qbcore/shared/items.lua Add the item image to your inventory/images

If you are using a different inventory then literally create the same items for your custom inventory.

-- Illegal Scrap Wrecks
['laser_cutter']                    = {['name'] = 'laser_cutter',                      ['label'] = 'Laser Cutter',              ['weight'] = 500,          ['type'] = 'item',         ['image'] = 'laser_cutter.png',             ['unique'] = false,         ['useable'] = true,     ['shouldClose'] = true,     ['combinable'] = nil,   ['description'] = 'The real deal for wrecks...'},

QBCore

You can add your own custom dispatch alert (QBCore & ESX)

Config.UseCustomAlert = false       -- If true you can use your own custom alert below
Config.CustomAlert = function()
    -- EXAMPLE FOR PS-DISPATCH:
    -- exports['ps-dispatch']:SuspiciousActivity()
end

ESX

Config.CustomAlert = function()
    exports['ps-dispatch']:SuspiciousActivity()
end

Last updated