# Installation

> Install Job Creator and give your administrators access to the editor.

## Requirements

You need **oxmysql**, **ESX, QBCore or Qbox**, and matching versions of these resources:

- `sky_base`
- `sky_jobs_base`
- `sky_jobcreator`

Copy the supplied resources to your server's resources folder. Keep their folder names unchanged.

Install and configure both libraries first using the [shared installation guide](/docs/installation) and [Jobs Base installation notes](/docs/base/jobs-base/introduction#installation-notes), including their database, filesystem and administrator permissions. In `server.cfg`, keep `add_filesystem_permission sky_base write sky_jobs_base` before `ensure sky_base`. Existing users should also complete the [Base 1.49.0](/docs/base/changelog) and [Jobs Base 1.52.0](/docs/base/jobs-base/changelog) update steps. Finish these prerequisites before starting Creator.

Banking, inventory and targeting are separate integrations. A society bank must support account provisioning before you create finance-enabled jobs. Document items need an inventory that supports individual metadata; check the [Jobs Base item definitions](/docs/base/jobs-base/inventory-items).

Back up the database, framework files, Sky resources and saved configurator data before first installation or an update.

## Stop conflicting creators

Before the first startup, open `server.cfg` and disable existing `ensure jobs_creator` and `ensure hex_jobscreator` lines. If either resource is inside an automatically ensured resource group, remove it from that group's automatic start. Keep both resources stopped: the installer refuses to start while either is running. Preserve their files and database records for supported migration; do not delete them to install Creator.

## Set the start order

Leave `Config.AutoInstallFramework = true` in `sky_jobcreator/config/config.lua`. Add the following to `server.cfg`, with the permission before the framework:

```cfg [server.cfg]
add_unsafe_worker_permission sky_jobcreator

ensure oxmysql
ensure es_extended
# QBCore: replace es_extended with qb-core.
# Qbox: replace es_extended with qbx_core.

ensure sky_base
ensure sky_jobs_base
ensure sky_jobcreator
```

Keep the framework's other dependencies in their normal order. On QBCore/Qbox, start Job Creator before character selection/login. On Qbox, add `set qbx:cleanPlayerGroups "false"` before `ensure qbx_core` so memberships survive until saved definitions load.

Restart the whole server after adding the permission. If installation reports changed framework files, restart the server once more to load them.

Original framework files are backed up beside the resource in `.sky_jobscreator-installer-backups/`. Resolve any installation error before creating jobs. See [Troubleshooting](/docs/jobs/jobcreator/reference/troubleshooting) if setup fails.

For a renamed framework, follow the included `INSTALL.md` instructions for its original-name resource alias. Do not rename resource references by guesswork.

## Database

Leave `Config.AutoExecuteQuery = true` in `sky_jobcreator/config/config.lua` to create and update the required tables automatically. If you disable it, apply the `sky_jobcreator/import.sql` from the same package manually before use. On QBCore or Qbox, also apply `sky_jobcreator/import_gangs.sql`; on ESX, apply only `import.sql` and leave gang tables untouched.

Keep existing jobs, grades, memberships and configurator data. Reimporting SQL or deleting tables is not a repair for a single incomplete job.

## Administrator access

The default Creator command groups are `god`, `superadmin` and `admin` under:

```lua [sky_jobcreator/config/config.lua]
Config.CommandPermissions = {
    jobcreator = { "god", "superadmin", "admin" }
}
```

Creator administration uses `sky_jobcreator.jobcreator`; it does not require separate `/jobconfig` access. If you add a custom group, add its exact name to the existing `Config.CommandPermissions.jobcreator` list above and restart `sky_jobcreator`. Add that group to `Config.CommandPermissions.jobconfig` in `sky_jobs_base/config/config.lua` only if it should also open `/jobconfig`. Existing explicit `sky_jobscreator.jobcreator` grants remain accepted. Employee rank permissions do not grant administrator access.

Follow the shared [permissions bootstrap](/docs/installation#permissions-bootstrap) for your administrator identity.

## Open the editor

Join with an authorised administrator and run **/jobcreator** or **/jobscreator**. Both commands open the same editor and use the same permissions.

Continue with [Create your first job](/docs/jobs/jobcreator/setup/first-job).

## Updating an earlier development installation

If your previous folder was `sky_jobscreator`, replace it with `sky_jobcreator` during your next planned server shutdown. Update the `ensure` entry and worker permission, and update Sky Base and Jobs Base together. Keep only one Creator folder in auto-started groups.

Keep your database and saved settings. You do not need to recreate jobs, rename database tables or resubmit Hub templates. Existing `sky_jobscreator.jobcreator` permissions remain accepted.
