Dispatch
function callCops(type,identifier)
dbug('callCops(type)', type)
local coords = GetEntityCoords(cache.ped)
if type == "door" then
-- Triggered when player fails to lockpick door
end
if type == "alarm" then
-- Triggered when house alarm doesn't get hacked in time
end
if type == "noise" then
-- Triggered when noise bar gets red color
end
-- Default dispatch notification and blip
TriggerServerEvent('av_houserobbery:sendDispatch', coords, type, identifier or currentIdentifier)
endLast updated