# Installation

## Install Instructions

**Automatic SQL Injection**

No need to import (sf\_storage.sql) to your database, it will automatically create and setup the necessary database table for you if it doesn't exist already.

## Step 1: Install Dependencies

{% embed url="<https://github.com/overextended/oxmysql/releases/latest>" %}
latest release version of oxmysql
{% endembed %}

{% embed url="<https://github.com/overextended/ox_lib/releases/latest>" %}
latest release version of ox\_lib
{% endembed %}

## Step 2: Add Item

This item require to add if you enable item check in config file

<figure><img src="https://501106024-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdgKNuvbkCTbDx9c9993X%2Fuploads%2FVcWsdXCj4V4kN9E4ocWO%2F%7B12ADEB85-8EB9-46D9-AC02-7D4F66F974F7%7D.png?alt=media&#x26;token=a2ecfa00-d53a-4c9a-8a02-b68742406d4d" alt=""><figcaption><p>config.lua</p></figcaption></figure>

<details>

<summary>ox_inventory</summary>

```lua
-- Add items into ox_inventory/data/items.lua
['police_stormram'] = {
    label = 'Stormram',
    weight = 5000,
},
```

</details>

<details>

<summary>qb-inventory</summary>

```lua
-- Add items into qb-core/shared/items.lua
police_stormram = { 
    name = 'police_stormram', 
    label = 'Stormram', 
    weight = 5000, 
    type = 'item', 
    image = 'police_stormram.png', 
    unique = true, 
    useable = false, 
    shouldClose = true, 
    combinable = nil, 
    description = 'A nice tool to break into doors' 
}
```

</details>

## Step 3: Add Image

Also this image require to add if the item added

{% file src="<https://501106024-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdgKNuvbkCTbDx9c9993X%2Fuploads%2FnZAt4ip6NYtILyWAaYiE%2Fimages.zip?alt=media&token=73a1bdc7-4738-40f3-b865-3ca24ba7c48a>" %}

<details>

<summary>ox_inventory</summary>

unzip and drop the image inside ***ox\_inventory/web/images*** folder.

</details>

<details>

<summary>qb-inventory</summary>

unzip and drop the image inside ***qb-inventory/html/images*** folder.

</details>

## Step 4: Setup Config

This step only go to ***config.lua*** file and start setup, everything explained there

## Step 5: Ensure Resource

This is last step and is easier, just drag and drop the folder into your main resources, if folder you drag him is inside sub folder and this sub folder already started everything ok, if not need to go ***server.cfj*** and add this command ***ensure sf\_storageunits.***
