---
description: Make sure to follow these steps for proper installation of the Script
---

# Installation Guide

## Script installation

* Download the Script From your [Keymaster](https://keymaster.fivem.net/asset-grants) and put the `[qb-nitro]` folder in your resource folder.&#x20;
* Add the following code to your `server.cfg` at the Bottom.

```lua
ensure qb-nitro
```

* Run the **SQL** file. ( According to your Framework )

***

## SQL installation

{% tabs %}
{% tab title="QBCore" %}
```sql
-- QBCore Nitrous SQL 
ALTER TABLE player_vehicles
ADD COLUMN `noslevel` int(10) DEFAULT 0;
ALTER TABLE player_vehicles
ADD COLUMN `hasnitro` tinyint(4) DEFAULT 0;
```
{% endtab %}

{% tab title="ESX" %}
```sql
-- ESX Nitrous SQL
ALTER TABLE owned_vehicles
ADD COLUMN `noslevel` int(10) DEFAULT 0;

ALTER TABLE owned_vehicles
ADD COLUMN `hasnitro` tinyint(4) DEFAULT 0;
INSERT INTO `items` VALUES ('nitrous', 'NOS Bottle', 1, 0, 1);
INSERT INTO `items` VALUES ('emptynitrous', 'Empty NOS Bottle', 1, 0, 1);

```
{% endtab %}
{% endtabs %}

***

## Dependency Installation

* Download `[ox_lib]` script from the link below and make sure to download the latest release.\
  \[[https://github.com/overextended/ox\_lib/releases](https://github.com/overextended/ox_lib/releases)].

<figure><img src="https://4203368946-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPsrM3x0hnSJ30pOLILqe%2Fuploads%2F53eIGCaHL5tKW09ZksII%2FScreenshot_3.png?alt=media&#x26;token=5a23a45f-3b57-478c-8dd1-af359ba1641d" alt=""><figcaption><p>[<strong>ox_lib] Download Instructions</strong></p></figcaption></figure>

{% hint style="info" %}
Remember to start the `[ox_lib]` before your framework core :&#x20;
{% endhint %}

```lua
-- QBCore & Extra stuff
ensure ox_lib        -- Start this before your Framework Core !
ensure qb-core
ensure [qb]
ensure [standalone]
ensure [voice]
ensure [defaultmaps]
ensure qb-nitro      -- Start the Nitro Script here !
```

***

## Images  Installation

* Add image from images folder into your inventory path accordingly.

<figure><img src="https://4203368946-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPsrM3x0hnSJ30pOLILqe%2Fuploads%2Fxp40DqfB6tRFFfiE9RuF%2Fimage.png?alt=media&#x26;token=63fab0d5-7421-4649-b695-ef06453ecc80" alt=""><figcaption><p><strong>Nitrous Images</strong></p></figcaption></figure>

{% hint style="success" %}
qb-inventory :

* `qb-inventory\html\images`

ox\_inventory :&#x20;

* `ox_inventory\web\images`

_Note : Place images for other Inventories Accordingly !_
{% endhint %}

***

## Item Installation

* Add these items to the inventory, and also verify that they have the correct image.

{% tabs %}
{% tab title="qb-inventory" %}
<pre class="language-lua"><code class="lang-lua">-- qb-inventory code
-- Paste the code in qb-core/shared/items.lua

<strong>['emptynitrous'] = {
</strong>    ['name'] = 'emptynitrous',
    ['label'] = 'Empty Bottle',
    ['weight'] = 1000,
    ['type'] = 'item',
    ['image'] = 'emptynitrous.png',
    ['unique'] = true,
    ['useable'] = false,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'Empty bottle of nitrous. Go to the Mechanic to refill your bottle',
},

</code></pre>
{% endtab %}

{% tab title="ps-inventory" %}
```lua
-- ps-inventory code
-- Paste the code in qb-core/shared/items.lua

['emptynitrous'] = {
    ['name'] = 'emptynitrous',
    ['label'] = 'Empty Bottle',
    ['weight'] = 1000,
    ['type'] = 'item',
    ['image'] = 'emptynitrous.png',
    ['unique'] = true,
    ['useable'] = false,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = 'Empty bottle of nitrous. Go to Mechanic to Refill your Bottle',
    ['decay'] = 3.0,
    ['delete'] = true,
},

```
{% endtab %}

{% tab title="ox_inventory" %}
```lua
-- ox_inventory code
-- Paste the code in ox_inventory/data/items.lua

["emptynitrous"] = {
    label = "Empty Nitrous Bottle",
    weight = 1000,
    stack = true,
    close = true,
    description = "Empty Nitrous Bottle, Go Refill it",
    client = {
        image = "emptynitrous.png",
    },
},

```
{% endtab %}

{% tab title="qs-inventory" %}
```lua
-- qs-inventory code
-- Paste the code in qs-inventory/shared/items/lua

["emptynitrous"] = {
    ["name"] = "emptynitrous",
    ["label"] = "Empty Bottle",
    ["weight"] = 1000,
    ["type"] = "item",
    ["image"] = "emptynitrous.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "Empty bottle of nitrous. Go to the Mechanic to refill your bottle",
},


```
{% endtab %}
{% endtabs %}

***

## Sound Installation

{% hint style="warning" %}
Only For <mark style="color:red;">**QBCore**</mark> only !
{% endhint %}

* Add sound files from sounds folder into the following path. &#x20;

{% hint style="success" %}
Path:  `resources[standalone]\interact-sound\client\html\sounds`
{% endhint %}

<figure><img src="https://4203368946-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPsrM3x0hnSJ30pOLILqe%2Fuploads%2FoRAwhzmtDy6mvqnrbADB%2Fimage.png?alt=media&#x26;token=8b02bb1c-9c9e-48da-ab12-7bb6fb861190" alt=""><figcaption><p><strong>Sound Files</strong></p></figcaption></figure>

<figure><img src="https://4203368946-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPsrM3x0hnSJ30pOLILqe%2Fuploads%2FcI0NkuWs6aW0h5lK7WpH%2Fimage.png?alt=media&#x26;token=722210be-97ee-4473-a3b3-981630aa97ab" alt=""><figcaption><p><strong>Destination Folder to put Sound Files</strong></p></figcaption></figure>

***
