QBCore Alerts

2

Replace the Default Dispatch Alert

Find the same line in your server’s resource and replace it with the new code snippet provided below.

local data = exports['cd_dispatch3d']:GetPlayerInfo()
TriggerServerEvent('cd_dispatch:AddNotification', {
    job_table = {'police', }, 
    coords = data.coords,
    title = '10-15 - Store Robbery',
    message = 'A '..data.sex..' robbing a store at '..data.street, 
    flash = 0,
    sound = 1,
    blip = {
        sprite = 431, 
        scale = 1.2, 
        colour = 3,
        flashes = false, 
        text = '911 - Store Robbery',
        time = 5,
        radius = 0,
    }
})
Before and After Example (from a random resource)
3

Customise the Variables

Make sure to adjust the variables in the event to match your server’s setup and preferences.

Last updated

Was this helpful?