# Installation Guide

> Sky-Systems offers a variety of high-quality FiveM scripts that can enhance the gameplay experience on your server. In this guide, we'll walk you through the process of installing a Sky-Systems script, step-by-step.

## Before you start

For a job resource you need the current versions of all three resources from the **same CFX Portal account**:

Sky Base and Sky Jobs Base are included with your job purchase. Install/update them alongside the job; no separate library purchase is needed.

- `sky_base`
- `sky_jobs_base`
- the job resource, for example `sky_ambulancejob`

**Job Creator (sky_jobcreator)** uses the same two libraries and requires **oxmysql** plus ESX, QBCore or Qbox. Select it in the setup guide below when you install it. Its [installation guide](/docs/jobs/jobcreator/setup/installation) and [first-job walkthrough](/docs/jobs/jobcreator/setup/first-job) cover creating your own jobs.

Your framework, SQL adapter, inventory, target system and other integrations selected in `sky_base/config` must already be installed and started. Do not rename any Sky resource folder.

## Interactive setup guide

**Anticheat requirement:** If Resource Protection is enabled, you **must whitelist all installed Sky resources**, including `sky_base`, `sky_jobs_base` and every installed Sky product. This applies to Electron and other anticheats; blocked requests/responses can disrupt the callback system. Follow the [Resource Protection setup guide](/docs/guide/anticheat-resource-protection) before testing.

Select the Sky resources installed on your server. `sky_base` and `sky_jobs_base` remain selected
because every job system depends on them. The generated plan combines the correct start order,
inventory locations, command and filesystem permissions, and the important checks for each selected resource.

<sky-setup-guide>



</sky-setup-guide>

## Installation Steps

Follow these steps to install a Sky-Systems job script on your FiveM server:

<steps>

### Install the sky_base resource

With the script, you will receive a `sky_base` resource in the [CFX Portal](https://portal.cfx.re/). This is a library that our scripts use for better performance, faster configuration, and less setup. Install the `sky_base` first by uploading it to your `resources` folder.

### Configure the sky_base resource

Navigate to the `config` folder inside `sky_base`. Select your framework, SQL adapter, inventory, target, banking, vehicle keys, fuel, phone, billing and language integrations. This configuration applies globally to all Sky scripts. For more information, visit the [sky_base documentation page](/docs/base/introduction).

Do not continue until the selected integration resources start without errors. A wrong integration selection can look like a job-script problem later.

### Download the script

Download the script from the [CFX Portal](https://portal.cfx.re/) and upload it to your `resources` folder. Note that sometimes after downloading from the CFX Portal, the resource folder is packed within another folder with the same name. Ensure you place the folder on your server that contains the `fxmanifest` file.

### Install sky_jobs_base

Every Sky job resource requires `sky_jobs_base`. Upload it next to `sky_base` and keep both resources on matching current versions.

### Prepare the database

Sky Jobs Base and the job resources use `Config.AutoExecuteQuery = true` by default and create or migrate their tables automatically. In that default setup, **do not additionally import import.sql**.

For job resources, import the included `import.sql` manually before first start only when you explicitly disable their automatic queries. Never import SQL from an older resource version over newer tables.

**Job Creator:** when its `Config.AutoExecuteQuery = true`, leave Creator's SQL files unimported and let startup finish the migration. If you disable that switch in `sky_jobcreator/config/config.lua`, execute the matching `sky_jobcreator/import.sql` before startup. On QBCore or Qbox, also execute `sky_jobcreator/import_gangs.sql`; on ESX, use only `import.sql` and leave gang tables untouched. Keep existing jobs, grades, memberships and balances.

### Configure the start order

Start framework and integrations first, then the Sky resources in dependency order:

```cfg [server.cfg]
# Framework, SQL, inventory, target and configured integrations first
add_filesystem_permission sky_base write sky_jobs_base
add_filesystem_permission sky_base write sky_scriptname

ensure sky_base
ensure sky_jobs_base
ensure sky_scriptname
```

Replace `sky_scriptname` with the unmodified resource name, for example `sky_ambulancejob`.

### Job Creator: framework installer and start order

**Only when installing sky_jobcreator:** open `server.cfg` and add this line near the top, **before the existing framework startup line** (`ensure es_extended`, `ensure qb-core` or `ensure qbx_core`):

```cfg [server.cfg]
add_unsafe_worker_permission sky_jobcreator
```

Keep `Config.AutoInstallFramework = true` in `sky_jobcreator/config/config.lua` for automatic framework-hook installation. The worker permission lets that installer update recognised framework files and save their originals beside Creator in `.sky_jobscreator-installer-backups/`. It is separate from administrator ACEs and Sky Base's filesystem permissions. See the [official FiveM worker-permission reference](https://docs.fivem.net/docs/developers/sandbox/#unsafe-worker-permission).

Keep the framework, database connector and selected providers in their normal dependency order, then use:

```cfg [server.cfg]
ensure sky_base
ensure sky_jobs_base
ensure sky_jobcreator
```

On QBCore/Qbox, put the character-selection/login resource **after** Creator. On Qbox, add `set qbx:cleanPlayerGroups "false"` before `ensure qbx_core` so memberships survive until Creator's saved definitions load. Start other installed Sky jobs after their two libraries; keep DOJ before Police and Ambulance before Crime when those integrations are used.

Before startup, disable any `ensure jobs_creator` or `ensure hex_jobscreator` lines and remove those legacy creators from automatically ensured groups. Keep their files and database records for supported migration, but keep both resources stopped: Creator's installer refuses to run while either is active.

Perform a **full server restart** after adding the worker permission. If the installer reports changed framework files, restart the whole server once more to load those changes. Resolve installation or database errors before creating jobs. Follow the [Creator migration guide](/docs/jobs/jobcreator/migration) when importing an existing supported Jaksam installation.

### Filesystem permissions

Sky Base needs permission to save files inside other Sky resources. Current FiveM server artifacts
block these writes unless you explicitly allow them. See the
[FiveM filesystem permissions documentation](https://docs.fivem.net/docs/developers/sandbox/#file-system-permissions).

Add one line for each installed resource to `server.cfg`, **before ensure sky_base and the other
Sky resources**. Keep only the lines for resources you actually install:

```cfg [server.cfg]
# Shared job library and job resources
add_filesystem_permission sky_base write sky_jobs_base
add_filesystem_permission sky_base write sky_ambulancejob
add_filesystem_permission sky_base write sky_policejob
add_filesystem_permission sky_base write sky_mechanicjob
add_filesystem_permission sky_base write sky_firejob
add_filesystem_permission sky_base write sky_dojjob
add_filesystem_permission sky_base write sky_crimesystem

# Other Sky resources
add_filesystem_permission sky_base write sky_advent
add_filesystem_permission sky_base write sky_banking
add_filesystem_permission sky_base write sky_drivingschool
add_filesystem_permission sky_base write sky_gym
add_filesystem_permission sky_base write sky_charcreator
add_filesystem_permission sky_base write sky_battlerace
```

Each line allows `sky_base` to write files in the named resource. Perform a **full server restart**
after adding or changing these permissions; restarting a single resource does not apply them.
Keep existing files in each resource's `data` folder when updating.

The database-based versions of `sky_dailyrewards` (3.3.3+), `sky_battlepass` (3.0.5+),
`sky_coinsystem` (2.4.5+) and `sky_shops` (1.0.11+)
do not need a Sky Base filesystem write permission. They install their schemas automatically through
`Sky.DB.Migrate`. Use current `sky_base` and oxmysql, and back up the database before upgrading.
Daily Rewards, Battle Pass and Shops import their old JSON files once: preserve the old `data` folder
through the first start, wait for the migration-complete message, then retain it as a backup. Follow
the resource's update guide: [Daily Rewards](/docs/scripts/dailyrewards/dailyrewards#updating-an-existing-installation),
[Battle Pass](/docs/scripts/battlepass/battlepass#updating-an-existing-installation),
[Coinsystem](/docs/scripts/coinsystem/coinsystem#updating-an-existing-installation) or
[Shops](/docs/scripts/shops#updating-an-existing-installation).

Free Phone (`sky_phone`) uses its own bridge and file storage, so it does not require a Sky Base
filesystem permission. Follow its [installation guide](/docs/scripts/free-phone/installation).

[Image Creator V2](/docs/scripts/imagecreator) saves PNGs inside its own resource. The
`add_filesystem_permission sky_base write sky_imagecreator` line applies to the older 1.x package.

### Permissions bootstrap

Add this ACE entry to your `server.cfg` **before** `ensure sky_base`. It gives `sky_base` permission to wire configured command access automatically on server start:

```cfg [server.cfg]
add_ace resource.sky_base command.add_ace allow
```

Without this line, admin commands like `/jobconfig`, `/setboss`, and `/revive` cannot be granted to any player and only the server console will be able to use them.

The actual per-command permissions are defined in each resource's `Config.CommandPermissions`.
For every configured group, Sky Base grants both the native `command.<command>` object and the
resource runtime object such as `sky_policejob.<command>`. See each job's permissions page for details.

**Job Creator administrators** use `sky_jobcreator.jobcreator`. The default groups are `god`, `superadmin` and `admin`. If you use a custom group, add its exact name to the existing `Config.CommandPermissions.jobcreator` list in `sky_jobcreator/config/config.lua`. Restart the resource, then open `/jobcreator` or `/jobscreator` with an administrator in that group. Keep `Config.CommandPermissions.jobconfig` in `sky_jobs_base/config/config.lua` separate: add the group there only if those administrators should also open `/jobconfig`. Existing explicit `sky_jobscreator.jobcreator` grants remain accepted. Employee rank rights and the worker permission do not grant editor access.

**Free Phone is standalone:** the Sky Base entry above does not configure Phone access.
Before `ensure sky_phone`, add `add_ace resource.sky_phone command.add_ace allow` and
`add_ace resource.sky_phone command.remove_ace allow`, then verify administrator ACE membership.
Phone does not need resource capabilities for `add_principal` or `remove_principal`.
Follow the [Phone permission guide](/docs/scripts/free-phone/configuration#administrator-access).

### Customize the script settings

Navigate to the resource's `config` folder and review at least the language, enabled systems, command permissions and advanced/static settings. Most job and station settings are created later through `/jobconfig`.

### Install inventory items and images

For **CodeM Inventory V2**, select the `codem-inventoryv2` item tab and follow the
[CodeM V2 setup](/docs/base/codem-inventory-v2). V2 uses the `codemv2` Sky Base adapter,
`data/items.lua` definitions and a separate `codem-inventory-images` resource.

Open the selected resource's **Inventory Items** reference page and add every item used by the
systems you enable in the format required by your inventory. Ready-to-copy shared restraint
definitions are on the [Jobs Base Inventory Items](/docs/base/jobs-base/inventory-items)
page; copy the available shared icons from `sky_jobs_base/config/inventory`. Job-specific items and
icons remain in that job resource's `config/inventory` folder.

Item keys are configurable. If you change a key in the job configuration, use the same key in your inventory definition. Some optional systems add their own items; the resource-specific installation page separates required and optional items.

### Complete resource-specific setup

Read the installation page for the job you are installing. Depending on the resource this includes requirements such as:

- removing conflicting framework job/medical resources;
- configuring the shared media provider used by tablet uploads;
- installing an external wheelchair vehicle model;
- using a metadata-capable inventory for police evidence;
- disabling duplicate framework salaries;
- granting the highest grade with `/setboss`;
- creating jobs, hospitals, stations and workshops with `/jobconfig`.

For Job Creator, use `/jobcreator` to create the job, ranks, workplace locations and enabled features. It uses shared Jobs Base items, including document/printer items when printing is enabled; there is no separate Creator inventory-item or model pack to install. Register any custom items, vehicles or props selected for your job with their owning providers. See [Create your first job](/docs/jobs/jobcreator/setup/first-job).

For tablet or report features that upload images or videos, select FiveManage, Qbox CDN, or a registered custom adapter in `sky_jobs_base/config/webhooks.lua`. Keep all provider secrets server-side, then perform a full server restart. See [Media Providers](/docs/base/jobs-base/media-providers) for configuration and the custom adapter contract.

### Save changes and start your server

Save your changes and perform a full server restart. Check the console for dependency, entitlement, SQL and missing-item errors before players connect. Do not rely on restarting a single resource as the installation test.

</steps>

## Important Considerations

- **Remove Conflicting Resources:**
Our scripts replace the default framework resources for the same job. For example, `sky_ambulancejob` replaces `esx_ambulancejob`, `qb-ambulancejob`, `qbx-ambulancejob`, **and** `qbx-medical`. Make sure to stop and remove the original resources from your `server.cfg` before starting ours. The scripts will warn you in the server console if a conflict is detected.
- **CFX Portal Account:**
Ensure that your server has a key from the same CFX Portal account the resource was purchased with. Otherwise, you will encounter the error: "You lack the required entitlement to use ..."
- **Do Not Rename Scripts:**
Do not rename the scripts. Renaming them will break their functionality.
- **Keep Dependency Versions Together:**
When updating a job resource, also update `sky_base` and `sky_jobs_base` from the same delivery. Mixed versions can expose incompatible APIs.
- **Do Not Run Two Salary Systems:**
Sky Jobs Base pays configured salaries. Set framework job-grade salaries to `0`, or disable `Config.Salary.enabled` in `sky_jobs_base` if another payroll system should remain responsible.

## First-start checklist

- The framework, SQL adapter, inventory, target and configured integrations start before `sky_base`.
- `sky_base`, `sky_jobs_base` and the job resource start in this order without console errors.
- Automatic database migration completed, or the matching current `import.sql` was imported once when automatic queries are disabled.
- Every enabled system's inventory items and images were installed.
- ACE permissions are present before `ensure sky_base`.
- If Job Creator is installed, its worker permission is before framework startup, conflicting creators are stopped, and any installer-requested second full restart is complete.
- Filesystem write permissions cover Jobs Base and every installed Sky Base resource and were applied with a full server restart.
- `/jobconfig` lists installed specialist job resources; Creator administrators can open `/jobcreator` and save a planned job/rank change.
- The highest intended boss grade was granted with `/setboss`.
- Framework salaries and Sky Jobs Base salaries are not both active.
- A full restart and one end-to-end job workflow were tested.

That's it! You've successfully installed a Sky-Systems script on your FiveM server.

## Possible Issues

If you encounter any issues during the installation process, here are some troubleshooting steps you can try:

### Failed to verify protected resource ...

This error message indicates that the script files may have been corrupted during the download process or that the `.fxap` file wasn't uploaded to your server. To resolve this issue, try the following steps:

- Verify that the `.fxap` file is present in the `sky_scriptname` folder within the `resources` folder on your server.
- Try deleting the `sky_scriptname` folder from your server and uploading it again using your FTP client.
- If the issue persists, try using a different FTP client to upload the script files to your server.

### You lack the required entitlement to use ...

If you see this error message, it may indicate an issue with your CFX Portal account. Try restarting your FiveM server and verifying your CFX Portal account to resolve this issue.

## Support

Need help? Our support team is always ready to assist

<u-button color="neutral" icon="i-simple-icons-discord" label="Join Discord" target="_blank" to="https://discord.gg/sky-systems" variant="subtle">



</u-button>
