# Installation

{% hint style="warning" %}
**Automatic SQL Injection**

In the <mark style="color:blue;">**sf\_pizzathis/!install**</mark> directory, you'll find a file called <mark style="color:blue;">**data\_pizzathis.sql**</mark>. There's no need to manually import this into your database. When you launch your server (or just the resource), it will automatically generate and configure the required database table if it hasn't already been created.
{% endhint %}

## Step 1: Install Dependencies

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

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

{% embed url="<https://github.com/Xogy/xsound/releases/latest>" %}
xsound
{% endembed %}

Don't forget to install *<mark style="color:red;">**sf\_lib**</mark>***&#x20;and&#x20;***<mark style="color:red;">**sf\_pizzathis\_assets**</mark>*, which is included with the script upon purchase.

## Step 2: Setup Framework

Go to *<mark style="color:blue;">**sf\_lib/Config.lua**</mark>* and config your framework, its auto detect so if your resource core folder is default no need to do that.

## Step 3: Add items list and images to inventory

In the *<mark style="color:blue;">**sf\_pizzathis/!install**</mark>* directory, you will find images inventory and items list.

## Step 4: Only for qb-inventory v2 users

Required to add this function in *<mark style="color:blue;">**qb-inventory/server/functions.lua**</mark>* in bottom file.

```lua
local function ClearInventoryStash(identifier)
    local inventory = Inventories[identifier]
    if not inventory then return end
    inventory.items = {}
    inventory.isOpen = false
end

exports('ClearInventoryStash', ClearInventoryStash)
```

## Step 5: Setup Config

Go to *<mark style="color:blue;">**sf\_pizzathis/config.lua**</mark>* file and start setup, everything explained there.

## Last Step: Ensure Resource

After download scripts and setup your config, drag and drop the folders 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 *<mark style="color:blue;">**server.cfj**</mark>* and add this commands:

```
ensure sf_lib
ensure sf_pizzathis_assets
ensure sf_pizzathis
```
