How to add Police Alerts?!
-- Police Alert for Oilrig Heist (Used Dispatch System can be changed in sd_lib/sh_config.lua)
function policeAlert()
SD.PoliceDispatch({
displayCode = "10-31H", -- Dispatch Code
title = 'Oilrig Heist', -- Title is only used in cd_dispatch
description = "Oilrig Heist in progress",-- Description of the heist
message = "Suspects reported on the oilrig", -- Additional message or information
-- Blip information is used for ALL dispatches besides ps_dispatch, please reference dispatchcodename below.
sprite = 310, -- The blip sprite for oilrig or related icon
scale = 1.0, -- The size of the blip on the map
colour = 1, -- The color of the blip on the map (red, for example)
blipText = "Oilrig Heist", -- Text that appears on the Blip
-- ps-dispatch
dispatchcodename = "oilrig_heist" -- This is the name for ps-dispatch users for the sv_dispatchcodes.lua entry.
})
end Last updated