Dispatch

Add this alert into your dispatch call config e.g. ps-dispatch/config.lua

['graverobbery'] = {
    radius = 0,
    sprite = 434,
    color = 5,
    scale = 1.5,
    length = 2,
    sound = 'Lose_1st',
    sound2 = 'GTAO_FM_Events_Soundset',
    offset = true,
    flash = false
},

And add this into your dispatch call alerts file e.g. ps-dispatch/alerts.lua

local function GraveRobbery()
    local coords = GetEntityCoords(cache.ped)
    
    local dispatchData = {
        message = 'Grave Robbery In Progress',
        codeName = 'graverobbery',
        code = '10-31',
        icon = 'fa-solid fa-skull',
        priority = 2,
        coords = coords,
        gender = GetPlayerGender(),
        street = GetStreetAndZone(coords),
        alertTime = nil,
        jobs = { 'leo' }
    }
    TriggerServerEvent('ps-dispatch:server:notify', dispatchData)
end
exports('GraveRobbery', GraveRobbery)

Last updated