-- ██████╗░██╗░██████╗██████╗░░█████╗░████████╗░█████╗░██╗░░██╗ -- ██╔══██╗██║██╔════╝██╔══██╗██╔══██╗╚══██╔══╝██╔══██╗██║░░██║ -- ██║░░██║██║╚█████╗░██████╔╝███████║░░░██║░░░██║░░╚═╝███████║ -- ██║░░██║██║░╚═══██╗██╔═══╝░██╔══██║░░░██║░░░██║░░██╗██╔══██║ -- ██████╔╝██║██████╔╝██║░░░░░██║░░██║░░░██║░░░╚█████╔╝██║░░██║ -- ╚═════╝░╚═╝╚═════╝░╚═╝░░░░░╚═╝░░╚═╝░░░╚═╝░░░░╚════╝░╚═╝░░╚═╝ RegisterNetEvent("qs-vehiclekeys:client:notifyCops", function(coords) local jobFramework = GetJobFramework() if Config.Dispatch == "default" and jobFramework and jobFramework.name == Config.ReqJobPolice then if Config.Debug then print("Dispatch event called default") end local transG = 300 * 2 local blip = AddBlipForCoord(coords) SetBlipSprite(blip, 161) SetBlipColour(blip, 3) SetBlipDisplay(blip, 4) SetBlipAlpha(blip, transG) SetBlipScale(blip, 1.5) SetBlipFlashes(blip, true) BeginTextCommandSetBlipName("STRING") AddTextComponentString(Lang("VEHICLEKEYS_NOTIFICATION_TITLE")) EndTextCommandSetBlipName(blip) while transG ~= 0 do Citizen.Wait(500) transG = transG - 1 SetBlipAlpha(blip, transG) if transG == 0 then SetBlipSprite(blip, 2) RemoveBlip(blip) return end end elseif Config.Dispatch == "qs-smartphone" then if Config.Debug then print("Dispatch event called qs-smartphone") end TriggerServerEvent("vehiclekeys:server:phoneDispatch", coords, street2) elseif Config.Dispatch == "qs" then if Config.Debug then print("Dispatch event called qs-dispatch") end TriggerServerEvent(Config.Eventprefix .. ':server:Dispatch') elseif Config.Dispatch == "origen" then if Config.Debug then print("Dispatch event called new-origen") end TriggerServerEvent(Config.Eventprefix .. ':server:DispatchOrigen', coords) end end)