# Installation

### **How to install:**

* Add the script into resources folder.
* Add this resource at the bottom of your server.cfg (to prevent framework error)
* Restart your server

### **Notes:**&#x20;

* Don't upload the script with FileZilla, Use Winscp if you are using FTP for file uploading.
* Renaming of the script is not allowed.
* We do not support custom frameworks, highly modified versions of QBCore, or deprecated/outdated versions of anything.&#x20;

### Necessary Modifications:

#### Setp: 1

Path: qb-smallresources/client/ignore.lua

Action: Search for `EnableDispatchService` and comment out this section like the image

<figure><img src="https://2088945756-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkHcyR2RbVMcj5NHJ2HEa%2Fuploads%2FeJpAlSDC601AtHZ6TtCY%2Fimage.png?alt=media&#x26;token=3ada9916-0227-4d2f-a97b-69f46509b26b" alt=""><figcaption></figcaption></figure>

#### Step: 2

Path: qb-smallresources/server/entities.lua

Action: Replace code

```lua
-- Blacklisting entities can just be handled entirely server side with onesync events
-- No need to run coroutines to supress or delete these when we can simply delete them before they spawn
AddEventHandler("entityCreating", function(handle)
    local entityModel = GetEntityModel(handle)
    if Config.BlacklistedVehs[entityModel] or Config.BlacklistedPeds[entityModel] then
        if GetResourceState('ak47_qb_wanted') == 'started' then
            if GlobalState.CopCount and GlobalState.CopCount > 0 then
                CancelEvent()
            end
        else
            CancelEvent()
        end
    end
end)
```
