Custom Dispatch Notify
Used by [mk_vehiclekeys]
Navigate to bridge/client
folder and select your framework lua file
Locate function framework.policeDispatchNotify
and add your police notify to it
Example for using cd_dispatch
notify
framework.policeDispatchNotify = function(self, data)
local notifyData = exports['cd_dispatch']:GetPlayerInfo()
TriggerServerEvent('cd_dispatch:AddNotification', {
job_table = {'police', },
coords = data.coords,
title = '10-16 - Vehicle Theft',
message = 'A '..data.vehicleName..' is being tampered with at '..notifyData.street,
flash = 0,
unique_id = notifyData.unique_id,
sound = 1,
blip = {
sprite = 431,
scale = 1.2,
colour = 3,
flashes = false,
text = '911 - Vehicle Theft',
time = 5,
radius = 0,
}
})
end
Last updated