> For the complete documentation index, see [llms.txt](https://docs.av-scripts.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.av-scripts.com/laptop-pack/laptop/installation/inventories/qb-inventory/version-2.x.md).

# Version 2.x

> This is for qb-inventory version 2.x or higher, you can verify it in the fxmanifest.lua

* Go to `qb-inventory/fxmanifest.lua` and replace the server\_scripts table with this:

```lua
server_scripts {
    '@oxmysql/lib/MySQL.lua',
    'server/*.lua',
}
```

* Go to `qb-inventory/server/main.lua` line 495, should look something like this:

<figure><img src="/files/XPqXmoTvg5dyPgxdQyu4" alt=""><figcaption></figcaption></figure>

* Replace the following line:

```lua
if toInventory:find('shop%-') then return end
```

* With this:

```lua
if isRestricted(toInventory) then return end
```

* Should look like this:

<figure><img src="/files/diuea8mvGInAQdHzcC6d" alt=""><figcaption></figcaption></figure>

* Download the following file and place it inside `qb-inventory/server` folder

{% file src="/files/lkspoBtwR3MeFww7Ruu9" %}
