[{"data":1,"prerenderedAt":206,"buildId":207},["ShallowReactive",2],{"page-\u002Fwiki\u002Fcustom-notifications":3,"related-\u002Fwiki\u002Fcustom-notifications":187},{"id":4,"title":5,"body":6,"category":177,"description":178,"extension":179,"meta":180,"navigation":181,"path":182,"script":183,"seo":184,"stem":185,"__hash__":186},"wiki_en\u002Fwiki\u002F36.custom-notifications.md","Your own notification system in the core",{"type":7,"value":8,"toc":174},"minimark",[9,14,141,167,170],[10,11,13],"h2",{"id":12},"config","Config",[15,16,22],"pre",{"className":17,"code":18,"filename":19,"language":20,"meta":21,"style":21},"language-lua shiki shiki-themes github-dark","Config.Notify = {\n    useCustom = true,\n    duration = 5000,\n    custom = function(data)\n        exports['my_notify']:Send(data.title, data.description, data.type, data.duration)\n    end\n}\n","lumina_core\u002Fshared\u002Fconfig.lua","lua","",[23,24,25,45,61,74,88,129,135],"code",{"__ignoreMap":21},[26,27,30,34,38,42],"span",{"class":28,"line":29},"line",1,[26,31,33],{"class":32},"s95oV","Config.",[26,35,37],{"class":36},"svObZ","Notify",[26,39,41],{"class":40},"snl16"," =",[26,43,44],{"class":32}," {\n",[26,46,48,51,54,58],{"class":28,"line":47},2,[26,49,50],{"class":32},"    useCustom ",[26,52,53],{"class":40},"=",[26,55,57],{"class":56},"sDLfK"," true",[26,59,60],{"class":32},",\n",[26,62,64,67,69,72],{"class":28,"line":63},3,[26,65,66],{"class":32},"    duration ",[26,68,53],{"class":40},[26,70,71],{"class":56}," 5000",[26,73,60],{"class":32},[26,75,77,80,82,85],{"class":28,"line":76},4,[26,78,79],{"class":36},"    custom",[26,81,41],{"class":40},[26,83,84],{"class":40}," function",[26,86,87],{"class":32},"(data)\n",[26,89,91,94,98,101,104,107,110,113,116,118,121,123,126],{"class":28,"line":90},5,[26,92,93],{"class":32},"        exports[",[26,95,97],{"class":96},"sU2Wk","'my_notify'",[26,99,100],{"class":32},"]:",[26,102,103],{"class":56},"Send",[26,105,106],{"class":32},"(data.",[26,108,109],{"class":36},"title",[26,111,112],{"class":32},", data.",[26,114,115],{"class":36},"description",[26,117,112],{"class":32},[26,119,120],{"class":36},"type",[26,122,112],{"class":32},[26,124,125],{"class":36},"duration",[26,127,128],{"class":32},")\n",[26,130,132],{"class":28,"line":131},6,[26,133,134],{"class":40},"    end\n",[26,136,138],{"class":28,"line":137},7,[26,139,140],{"class":32},"}\n",[142,143,144,147,148,151,152,155,156,155,159,162,163,166],"p",{},[23,145,146],{},"my_notify"," is a placeholder for your script. ",[23,149,150],{},"data.type"," is ",[23,153,154],{},"success",", ",[23,157,158],{},"error",[23,160,161],{},"info"," or ",[23,164,165],{},"warning",".",[142,168,169],{},"The setting affects the messages of the core. Lumina ELS sends its messages through ox_lib.",[171,172,173],"style",{},"html pre.shiki code .s95oV, html code.shiki .s95oV{--shiki-default:#E1E4E8}html pre.shiki code .svObZ, html code.shiki .svObZ{--shiki-default:#B392F0}html pre.shiki code .snl16, html code.shiki .snl16{--shiki-default:#F97583}html pre.shiki code .sDLfK, html code.shiki .sDLfK{--shiki-default:#79B8FF}html pre.shiki code .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#9ECBFF}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);}",{"title":21,"searchDepth":47,"depth":47,"links":175},[176],{"id":12,"depth":47,"text":13},"examples","Show messages of the core through your own notify script.","md",{},true,"\u002Fwiki\u002Fcustom-notifications","Core",{"title":5,"description":178},"wiki\u002F36.custom-notifications","j6hFyptXsLvLy0X0cJf5u2S_bSqKJGXwb4X-Srpty7w",[188,191,194,197,200,203],{"path":189,"title":190},"\u002Fwiki\u002Fox-inventory-items","Create the items in ox_inventory",{"path":192,"title":193},"\u002Fwiki\u002Fcustom-siren-profile","Create your own siren profile",{"path":195,"title":196},"\u002Fwiki\u002Fsiren-pack","Add your own siren pack",{"path":198,"title":199},"\u002Fwiki\u002Fbeacon-position","Position the deployable light per vehicle model",{"path":201,"title":202},"\u002Fwiki\u002Frestrict-jobs","ELS for certain jobs only",{"path":204,"title":205},"\u002Fwiki\u002Fdispatch-integration","Switch emergency lights from another script",1796489274813,"796809a0-6a93-472e-ad3e-7b1dd1b64509"]