[{"data":1,"prerenderedAt":366},["ShallowReactive",2],{"/docs/base/jobs-base/client-exports/emergency-dispatch":3,"/docs/base/jobs-base/client-exports/emergency-dispatch-surround":352,"/docs/base/jobs-base/client-exports/emergency-dispatch-implemented-suggestions":365},{"id":4,"title":5,"body":6,"description":341,"extension":342,"head":343,"implementedSuggestions":343,"meta":344,"navigation":345,"path":347,"schemaOrg":343,"seo":348,"sitemap":349,"stem":350,"__hash__":351},"docs/1.docs/base/2.jobs-base/3.client-exports/1.emergency-dispatch.md","Emergency Dispatch",{"type":7,"value":8,"toc":336},"minimark",[9,13,17,30,37,146,161,321,324,332],[10,11,5],"h2",{"id":12},"emergency-dispatch",[14,15,16],"p",{},"Use this export when a client resource needs to report an incident to one or more jobs. The caller\nreturns immediately and the server validates and creates the incident asynchronously.",[18,19,22],"callout",{"color":20,"icon":21},"info","i-lucide-info",[14,23,24,25,29],{},"With ",[26,27,28],"code",{},"Config.Dispatch.enabled = true",", the export creates a persistent Dispatch App incident. When\nthe master switch is disabled, the same integration automatically uses the legacy map dispatch and\ntop-center notification.",[31,32,34],"h3",{"id":33},"createdispatchtitle-message-coords-jobs-meta",[26,35,36],{},"createDispatch(title, message, coords, jobs, meta)",[38,39,40,56],"table",{},[41,42,43],"thead",{},[44,45,46,50,53],"tr",{},[47,48,49],"th",{},"Argument",[47,51,52],{},"Type",[47,54,55],{},"Description",[57,58,59,75,89,108,123],"tbody",{},[44,60,61,67,72],{},[62,63,64],"td",{},[26,65,66],{},"title",[62,68,69],{},[26,70,71],{},"string",[62,73,74],{},"Required incident title.",[44,76,77,82,86],{},[62,78,79],{},[26,80,81],{},"message",[62,83,84],{},[26,85,71],{},[62,87,88],{},"Incident description.",[44,90,91,96,101],{},[62,92,93],{},[26,94,95],{},"coords",[62,97,98],{},[26,99,100],{},"vector3 | table",[62,102,103,104,107],{},"Required world position. Tables use ",[26,105,106],{},"{ x, y, z }",".",[44,109,110,115,120],{},[62,111,112],{},[26,113,114],{},"jobs",[62,116,117],{},[26,118,119],{},"string | string[]",[62,121,122],{},"One job name or an array of target jobs.",[44,124,125,130,135],{},[62,126,127],{},[26,128,129],{},"meta",[62,131,132],{},[26,133,134],{},"table?",[62,136,137,138,141,142,145],{},"Optional ",[26,139,140],{},"sourceId"," and ",[26,143,144],{},"category"," values.",[14,147,148,152,153,156,157,160],{},[149,150,151],"strong",{},"Returns:"," ",[26,154,155],{},"boolean"," — always ",[26,158,159],{},"true",". Creation is handled by the server after the export returns.",[162,163,169],"pre",{"className":164,"code":165,"filename":166,"language":167,"meta":168,"style":168},"language-lua shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","exports[\"sky_jobs_base\"]:createDispatch(\n    \"Traffic Accident\",\n    \"Vehicle collision on Route 68\",\n    GetEntityCoords(PlayerPedId()),\n    { \"ambulance\", \"police\" },\n    {\n        sourceId = \"traffic-camera-12\",\n        category = \"accident\"\n    }\n)\n","client.lua","lua","",[26,170,171,200,214,226,241,268,274,293,309,315],{"__ignoreMap":168},[172,173,176,180,184,188,190,193,197],"span",{"class":174,"line":175},"line",1,[172,177,179],{"class":178},"sTEyZ","exports[",[172,181,183],{"class":182},"sMK4o","\"",[172,185,187],{"class":186},"sfazB","sky_jobs_base",[172,189,183],{"class":182},[172,191,192],{"class":178},"]:",[172,194,196],{"class":195},"s2Zo4","createDispatch",[172,198,199],{"class":178},"(\n",[172,201,203,206,209,211],{"class":174,"line":202},2,[172,204,205],{"class":182},"    \"",[172,207,208],{"class":186},"Traffic Accident",[172,210,183],{"class":182},[172,212,213],{"class":178},",\n",[172,215,217,219,222,224],{"class":174,"line":216},3,[172,218,205],{"class":182},[172,220,221],{"class":186},"Vehicle collision on Route 68",[172,223,183],{"class":182},[172,225,213],{"class":178},[172,227,229,232,235,238],{"class":174,"line":228},4,[172,230,231],{"class":195},"    GetEntityCoords",[172,233,234],{"class":178},"(",[172,236,237],{"class":195},"PlayerPedId",[172,239,240],{"class":178},"()),\n",[172,242,244,247,249,252,254,257,259,262,265],{"class":174,"line":243},5,[172,245,246],{"class":178},"    { ",[172,248,183],{"class":182},[172,250,251],{"class":186},"ambulance",[172,253,183],{"class":182},[172,255,256],{"class":178},", ",[172,258,183],{"class":182},[172,260,261],{"class":186},"police",[172,263,264],{"class":182},"\" ",[172,266,267],{"class":178},"},\n",[172,269,271],{"class":174,"line":270},6,[172,272,273],{"class":178},"    {\n",[172,275,277,280,283,286,289,291],{"class":174,"line":276},7,[172,278,279],{"class":178},"        sourceId ",[172,281,282],{"class":182},"=",[172,284,285],{"class":182}," \"",[172,287,288],{"class":186},"traffic-camera-12",[172,290,183],{"class":182},[172,292,213],{"class":178},[172,294,296,299,301,303,306],{"class":174,"line":295},8,[172,297,298],{"class":178},"        category ",[172,300,282],{"class":182},[172,302,285],{"class":182},[172,304,305],{"class":186},"accident",[172,307,308],{"class":182},"\"\n",[172,310,312],{"class":174,"line":311},9,[172,313,314],{"class":178},"    }\n",[172,316,318],{"class":174,"line":317},10,[172,319,320],{"class":178},")\n",[14,322,323],{},"The server determines the calling player. Do not send a player source through client metadata.",[14,325,326,327,107],{},"For server-created incidents and duplicate handling, see\n",[328,329,331],"a",{"href":330},"/docs/base/jobs-base/server-exports/emergency-dispatch","Server Exports: Emergency Dispatch",[333,334,335],"style",{},"html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":168,"searchDepth":175,"depth":202,"links":337},[338],{"id":12,"depth":202,"text":5,"children":339},[340],{"id":33,"depth":216,"text":36},"Public client-side export for creating Emergency Dispatch incidents through sky_jobs_base.","md",null,{},{"icon":346},"i-lucide-siren","/docs/base/jobs-base/client-exports/emergency-dispatch",{"title":5,"description":341},{"loc":347},"1.docs/base/2.jobs-base/3.client-exports/1.emergency-dispatch","Ub4ad6QDuSd-AT8mzjc9JlJI7dJ3HBEHgww8iF8BjH4",[353,359],{"title":354,"path":355,"stem":356,"children":-1,"description":357,"icon":358},"Client Exports","/docs/base/jobs-base/client-exports","1.docs/base/2.jobs-base/3.client-exports","Client-side exports provided by sky_jobs_base for radial menu, dispatch, and storage interactions.","i-lucide-monitor",{"title":360,"path":361,"stem":362,"children":-1,"description":363,"icon":364},"Server Exports","/docs/base/jobs-base/server-exports","1.docs/base/2.jobs-base/4.server-exports","Server-side exports provided by sky_jobs_base for dispatch, tablet app registration, and more.","i-lucide-server",[],1786217466447]