> For the complete documentation index, see [llms.txt](https://zat-scripts.gitbook.io/zat-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zat-scripts.gitbook.io/zat-scripts/esx/store-robbery/installation.md).

# Installation

## Dependencies

<details>

<summary>ES EXTENDED</summary>

You will need the latest version of [es\_extended](https://github.com/ESX-Official/es_extended).

* Extract the contents of the archive to your resources folder.
* Start the resource near the top of your resources in your server.cfg.

</details>

### Installing the resource

* Make sure you have the [dependencies](#dependencies) listed above installed.

* Extract the contents of the archive to your resources folder.

* Add these items into ox\_inventory/data/items.lua :&#x20;
  * ```
    ["registerkey1"] = {
    		label = "Key",
    		weight = 100,
    		stack = false,
    		close = true,
    		description = "",
    		client = {
    			image = "labkey.png",
    		}
    },
    ["registerkey2"] = {
    		label = "Key",
    		weight = 100,
    		stack = false,
    		close = true,
    		description = "",
    		client = {
    			image = "labkey.png",
    		}
    },
    ["srecuritycard"] = {
    		label = "Security Card",
    		weight = 100,
    		stack = false,
    		close = true,
    		description = "",
    		client = {
    			image = "srecuritycard.png",
    		}
    },
    ```

* If you want the alarm sound and sound effects :&#x20;
  * Download [interact-sound](https://github.com/plunkettscott/interact-sound) from Github.
  * Addthe .ogg files inside \[sounds] into interact-sound\client\html\sounds.

* &#x20;Add this to your inventory js :&#x20;

```html
else if (itemData.name == "srecuritycard") {
    $(".item-info-title").html("<p>" + itemData.label + "</p>"); 
    $(".item-info-description").html("<p> Code: " + itemData.info.code + "</p>");   
}
```

* Doorlocks :&#x20;
  * &#x20;QB : add the doorlock.lua  into qb-doorlock\configs
  * &#x20;OX : add the SQL into ox\_doorlock TABLE&#x20;

    &#x20;IMPORTANT : Change the IDs to avoid duplicated door IDS
* Ensure zat-storerobbery.
* If you are using GABZ 247Mlo then :&#x20;
  * ensure zat - ltddoors
* If you are using FM SUPERMARKET Mlo then :&#x20;
  * ensure zat-mfsupermaketdoors
  * zat-ltddoors
* If you are not using GABZ 247Mlo then :
  * ensure zat - ltddoors
  * ensure zat-247doors
