Installation

This script is designed to work seamlessly with ESX and QBCore/QBOX frameworks. The configuration is the same for all frameworks and requires no additional steps.


Dispatch Settings

Config.PoliceAlert = function(coords, drugType)
    if Config.Police.NotificationSystem == 'ps-dispatch' then
        exports["ps-dispatch"]:DrugSale({
            coords = coords,
            drugType = drugType
        })
    elseif Config.Police.NotificationSystem == 'cd_dispatch' then
        local data = {
            title = "Suspicious Drug Dealing",
            coords = coords,
            description = "Citizen Tip: Suspicious drug dealing"
        }
        TriggerServerEvent('cd_dispatch:AddNotification', data)
    end
end

Last updated