# Library and Startup

> Read Jobs Base initialization state and import the shared Sky_Jobs library on the correct side.

## GetStartupState()

**Client and server · sky_jobs_base.** Returns `{ ready, pending, stage?, error?, warnings }` for that side's initialization. `pending` lists unfinished stages; `stage` and `error` describe an initialization failure; `warnings` records stage warnings.

```lua
local state = exports["sky_jobs_base"]:GetStartupState()
print("Jobs Base ready:", state.ready)
```

A resource's `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.

## Get()

**Client and server · sky_jobs_base.** Returns the `Sky_Jobs` library after initialization, or `nil` while Jobs Base is not ready.

Use your resource's existing Jobs Base import/dependency loader for normal initialization. Once ready, the library is available through:

```lua
local Sky_Jobs = exports["sky_jobs_base"]:Get()
```

Methods such as [Sky_Jobs.Bells](/docs/base/jobs-base/server-exports/job-bells) belong to this library. They are not separately named Cfx exports. Use their documented execution side, signature and authority rules.

For setup, see [installation](/docs/installation) and [Jobs Base](/docs/base/jobs-base/introduction). For integration contracts, choose [client exports](/docs/base/jobs-base/client-exports) or [server exports](/docs/base/jobs-base/server-exports).
