[{"data":1,"prerenderedAt":236},["ShallowReactive",2],{"/docs/base/jobs-base/library-and-startup":3,"/docs/base/jobs-base/library-and-startup-surround":225,"/docs/base/jobs-base/library-and-startup-implemented-suggestions":235},{"id":4,"title":5,"body":6,"description":215,"extension":216,"head":217,"implementedSuggestions":217,"meta":218,"navigation":219,"path":220,"schemaOrg":217,"seo":221,"sitemap":222,"stem":223,"__hash__":224},"docs/1.docs/base/2.jobs-base/10.library-and-startup.md","Library and Startup",{"type":7,"value":8,"toc":211},"minimark",[9,14,47,119,126,130,145,148,177,186,207],[10,11,13],"h2",{"id":12},"getstartupstate","GetStartupState()",[15,16,17,26,27,30,31,34,35,38,39,42,43,46],"p",{},[18,19,20,21,25],"strong",{},"Client and server · ",[22,23,24],"code",{},"sky_jobs_base","."," Returns ",[22,28,29],{},"{ ready, pending, stage?, error?, warnings }"," for that side's initialization. ",[22,32,33],{},"pending"," lists unfinished stages; ",[22,36,37],{},"stage"," and ",[22,40,41],{},"error"," describe an initialization failure; ",[22,44,45],{},"warnings"," records stage warnings.",[48,49,54],"pre",{"className":50,"code":51,"language":52,"meta":53,"style":53},"language-lua shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","local state = exports[\"sky_jobs_base\"]:GetStartupState()\nprint(\"Jobs Base ready:\", state.ready)\n","lua","",[22,55,56,93],{"__ignoreMap":53},[57,58,61,65,69,72,75,78,81,83,86,90],"span",{"class":59,"line":60},"line",1,[57,62,64],{"class":63},"sMK4o","local",[57,66,68],{"class":67},"sTEyZ"," state ",[57,70,71],{"class":63},"=",[57,73,74],{"class":67}," exports[",[57,76,77],{"class":63},"\"",[57,79,24],{"class":80},"sfazB",[57,82,77],{"class":63},[57,84,85],{"class":67},"]:",[57,87,89],{"class":88},"s2Zo4","GetStartupState",[57,91,92],{"class":67},"()\n",[57,94,96,99,102,104,107,109,112,116],{"class":59,"line":95},2,[57,97,98],{"class":88},"print",[57,100,101],{"class":67},"(",[57,103,77],{"class":63},[57,105,106],{"class":80},"Jobs Base ready:",[57,108,77],{"class":63},[57,110,111],{"class":67},", state.",[57,113,115],{"class":114},"sBMFI","ready",[57,117,118],{"class":67},")\n",[15,120,121,122,125],{},"A resource's ",[22,123,124],{},"started"," state does not establish that migrations, settings, generic jobs or client initialization have finished. Server and client readiness are separate; a server result does not prove a particular client's NUI is ready.",[10,127,129],{"id":128},"get","Get()",[15,131,132,136,137,140,141,144],{},[18,133,20,134,25],{},[22,135,24],{}," Returns the ",[22,138,139],{},"Sky_Jobs"," library after initialization, or ",[22,142,143],{},"nil"," while Jobs Base is not ready.",[15,146,147],{},"Use your resource's existing Jobs Base import/dependency loader for normal initialization. Once ready, the library is available through:",[48,149,151],{"className":50,"code":150,"language":52,"meta":53,"style":53},"local Sky_Jobs = exports[\"sky_jobs_base\"]:Get()\n",[22,152,153],{"__ignoreMap":53},[57,154,155,157,160,162,164,166,168,170,172,175],{"class":59,"line":60},[57,156,64],{"class":63},[57,158,159],{"class":67}," Sky_Jobs ",[57,161,71],{"class":63},[57,163,74],{"class":67},[57,165,77],{"class":63},[57,167,24],{"class":80},[57,169,77],{"class":63},[57,171,85],{"class":67},[57,173,174],{"class":88},"Get",[57,176,92],{"class":67},[15,178,179,180,185],{},"Methods such as ",[181,182,184],"a",{"href":183},"/docs/base/jobs-base/server-exports/job-bells","Sky_Jobs.Bells"," belong to this library. They are not separately named Cfx exports. Use their documented execution side, signature and authority rules.",[15,187,188,189,38,193,197,198,202,203,25],{},"For setup, see ",[181,190,192],{"href":191},"/docs/installation","installation",[181,194,196],{"href":195},"/docs/base/jobs-base/introduction","Jobs Base",". For integration contracts, choose ",[181,199,201],{"href":200},"/docs/base/jobs-base/client-exports","client exports"," or ",[181,204,206],{"href":205},"/docs/base/jobs-base/server-exports","server exports",[208,209,210],"style",{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}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 pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}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":53,"searchDepth":60,"depth":95,"links":212},[213,214],{"id":12,"depth":95,"text":13},{"id":128,"depth":95,"text":129},"Read Jobs Base initialization state and import the shared Sky_Jobs library on the correct side.","md",null,{},true,"/docs/base/jobs-base/library-and-startup",{"title":5,"description":215},{"loc":220},"1.docs/base/2.jobs-base/10.library-and-startup","7LYb4f6OfSfAO4dY0nGx62lcCvh78gSCxvr0dY66z7A",[226,230],{"title":196,"path":195,"stem":227,"description":228,"icon":229,"children":-1},"1.docs/base/2.jobs-base/1.introduction","sky_jobs_base is the shared foundation for all Sky-Systems job scripts — providing the tablet system, dispatch, radial menu, garage, storage, and more.","i-lucide-info",{"title":231,"path":232,"stem":233,"children":-1,"description":234},"Shared Features","/docs/base/jobs-base/features","1.docs/base/2.jobs-base/2.features","Configure the shared features used by Sky jobs and Creator employment jobs.",[],1791814176134]