# Installation

> Install Sky Fireworks through Sky Base, register items for your inventory and verify your first in-game show.

## Requirements

<table>
<thead>
  <tr>
    <th>
      Requirement
    </th>
    
    <th>
      Purpose
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      OneSync
    </td>
    
    <td>
      The resource uses shared positions and game instances for placement and show playback.
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="/docs/base/introduction">
        Sky Base
      </a>
    </td>
    
    <td>
      Provides language, callbacks and access to your framework's inventory or the inventory provider selected in Sky Base.
    </td>
  </tr>
</tbody>
</table>

Fireworks stores layouts and presets in the server's resource storage. It can use the framework inventory through Sky Base. If you already run an external inventory, keep the setup and dependencies for that provider.

<steps>

### Place the resource

Extract the download into your server resources. Keep the folder containing `fxmanifest.lua` named `sky_fireworks`. Keep both supplied streaming folders, `stream/` and `stream_enhanced/`, and the rest of the package together. The inventory image URLs use the resource name.

### Register the inventory items

Open [Inventory items](/docs/scripts/fireworks/reference/inventory#inventory-templates) and select the template for the inventory you use. Import the definitions if your provider requires a file or database entry. Sky Base registers supported entries automatically where the active adapter allows it and keeps existing definitions. Register both **Bang Snaps** and **Bang Snap**.

Keep a reusable item named `lighter`. The item provided by Fire Job also works. Each template includes a lighter entry you can use if your server needs one.

### Start Fireworks

Start the framework and its inventory first. If you use an external inventory, start it before Sky Base. Follow it with these two lines in `server.cfg`.

```cfg [server.cfg]
ensure sky_base
ensure sky_fireworks
```

Leave the Sky Base inventory option on automatic detection, or select the alias shown with your [inventory template](/docs/scripts/fireworks/reference/inventory#inventory-templates). Fireworks uses Sky Base for item registration, inventory changes and remote pairing. A provider with item metadata can store the pairing on each remote. Framework inventories without item metadata save one active remote link per character.

### Verify with a player

Give a character a **lighter**, **Firing Station**, **Show Remote**, **Signal Nine**, **Gold Fountain** and two **Fuse Links**. Place and pack up an unlit article to check that inventory changes follow placement. Then [build the first show](/docs/scripts/fireworks/features/show-controller#build-your-first-show), pair the remote and check the planner. A regular player can do this with the items in inventory. The ACE grant in [Server settings](/docs/scripts/fireworks/setup/server-settings#operator-access) is for operator commands and Admin presets.

</steps>

## Update an existing installation

1. Finish active shows and save reusable layouts. Pack up placed gear you want back before changing the placed-prop restoration setting.
2. Back up the current resource, your inventory table and the server data containing Fireworks presets. Replace the resource with the complete matching package. Reapply your [server settings](/docs/scripts/fireworks/setup/server-settings) and custom sound entries to the supplied editable files.
3. Match the inventory catalogue to the new package. Keep the existing IDs for **Firing Station** and **Bang Snaps**, add **Show Remote** and the individual **Bang Snap**, and use the new definitions for **Blue Report** and **Mini Crack**. If you previously added the optional Fireworks item-translation loader to ox_inventory, remove that call from the inventory item file. Current item labels are English. [Inventory migration details](/docs/scripts/fireworks/reference/inventory#older-inventory-items)
4. Start the server with the updated files and reconnect with a fresh client session for changed props or particle artwork. Test both a loose item and the station after the update.

The Fireworks registration count includes usable items such as the station and remote. A smaller registered count means entries are missing or have a different `consume` value. The reusable lighter and the Fuse Link used during connection have their own roles and are outside that count. Successful registration can be logged by enabling [diagnostics](/docs/scripts/fireworks/setup/server-settings#diagnostics).

For a resource update without a full server restart, the server console's `refresh` command rescans resources. If you changed the item catalogue, reload the inventory during your maintenance window, then start or restart `sky_fireworks`. [FiveM server commands](https://docs.fivem.net/docs/server-manual/server-commands/#refresh)
