> For the complete documentation index, see [llms.txt](https://codebyrave.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codebyrave.gitbook.io/docs/resources/cr-fireworks/installation.md).

# Installation

## Assets

{% hint style="info" %}
Download the listed assets from [Cfx.re Portal](https://portal.cfx.re/assets/granted-assets)

* ***`CR_Fireworks`***

Unzip the file and drag & drop the resource into a new folder named `[container/esx-addons]` inside your server's `resources` folder.
{% endhint %}

***

## Ensure Order File

{% hint style="danger" %}
It's **very important** to ensure the resources in the server.cfg are loaded
{% endhint %}

```
ensure CR_Fireworks
```

***

### SQL Database

{% hint style="warning" %}
make sure you have the correct sql in the database for the default inventory's
{% endhint %}

#### ESX

```
INSERT INTO `items` (`name`, `label`, `weight`) VALUES
	('firework1', '2Brothers', 1),
	('firework2', 'Poppelers', 1),
	('firework3', 'WipeOut', 1),
	('firework4', 'Weeping Willow', 1),


;

```

#### QBCORE

```
INSERT INTO `items` 
(`name`, `label`, `weight`, `type`, `unique`, `useable`, `image`, `shouldClose`, `description`) 
VALUES
    ('firework1', '2Brothers', 1, 'item', 0, 1, 'firework1.png', 1, 'Firework: 2Brothers'),
    ('firework2', 'Poppelers', 1, 'item', 0, 1, 'firework2.png', 1, 'Firework: Poppelers'),
    ('firework3', 'WipeOut', 1, 'item', 0, 1, 'firework3.png', 1, 'Firework: WipeOut'),
    ('firework4', 'Weeping Willow', 1, 'item', 0, 1, 'firework4.png', 1, 'Firework: Weeping Willow');

```

{% hint style="warning" %}
If you're using OX Inventory, make sure you've correctly loaded the correct item in:

/data/items.lua
{% endhint %}

### INVENTORY ITEM

```
['firework1'] = {
    label = '2Brothers',
    weight = 100,             
    stack = true,
    close = true,
    description = 'Firework: 2Brothers',
},

['firework2'] = {
    label = 'Poppelers',
    weight = 100,
    stack = true,
    close = true,
    description = 'Firework: Poppelers',
},

['firework3'] = {
    label = 'WipeOut',
    weight = 100,
    stack = true,
    close = true,
    description = 'Firework: WipeOut',
},

['firework4'] = {
    label = 'Weeping Willow',
    weight = 100,
    stack = true,
    close = true,
    description = 'Firework: Weeping Willow',
},

```

## Completed Step

{% hint style="success" %}
You have **successfully installed** our CR Fireworks resource.&#x20;

Restart your server and enjoy!
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://codebyrave.gitbook.io/docs/resources/cr-fireworks/installation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
