> 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/pacific-robbery/installation.md).

# Installation

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

## 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>

<details>

<summary>MKA-Lasers</summary>

You will need the latest version of [mka-lasers](https://github.com/mkafrin/mka-lasers).

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

</details>

<details>

<summary>Glow-Minigames</summary>

You will need the latest version of [Glow-Minigames.](https://github.com/christikat/glow_minigames)

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

</details>

<details>

<summary>RAN-Minigames</summary>

You will need the latest version of [RAN-Minigames](https://github.com/RanDXDev/ran-minigames)[.](https://github.com/christikat/glow_minigames)

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

</details>

<details>

<summary>ZAT-CodingMinigame (Free with the pack)</summary>

* You will find it for free in the pack..
* 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 item to ox\_inventory/data/items.lua.

  ```lua
  ['pacificard'] = {
  	label = 'Pacific Security Card',
  	stack = false,
  	weight = 10,
  	client = {
  		image = 'pacificard.png'
  	}
  },
  ['pacifichackdevice'] = {
  	label = 'Pacific Hack Device',
  	stack = false,
  	weight = 10,
  	client = {
  		image = 'pacifichackdevice.png'
  	}
  },
  ['pacificofficekeys'] = {
  	label = 'Keys',
  	stack = false,
  	weight = 10,
  	client = {
  		image = 'keys.png'
  	}
  },
  ['cd'] = {
  	label = 'cd',
  	stack = false,
  	weight = 10,
  	client = {
  		image = 'cd.png'
  	}
  },
  ['pacificdowncard'] = {
  	label = 'Security Card',
  	stack = false,
  	weight = 10,
  	client = {
  		image = 'pacificdowncard.png'
  	}
  },
  ['nightvision'] = {
  	label = 'Night Vision',
  	stack = false,
  	weight = 10,
  	client = {
  		image = 'nightvision.png'
  	}
  },
  ['arm'] = {
  	label = 'Security Arm',
  	stack = false,
  	weight = 10,
  	client = {
  		image = 'arm.png'
  	}
  },
  ['trolley'] = {
  	label = 'Trolley Arm',
  	stack = false,
  	weight = 10,
  	client = {
  		image = 'trolley.png'
  	}
  },
  ['diamond'] = {
  	label = 'Diamond',
  	stack = false,
  	weight = 10,
  	client = {
  		image = 'diamond.png'
  	}
  },
  ['cashcase'] = {
  	label = 'Cash Case',
  	stack = false,
  	weight = 10,
  	client = {
  		image = 'cashcase.png'
  	}
  },
  ['drill'] = {
  	label = 'Drill',
  	stack = false,
  	weight = 10,
  	client = {
  		image = 'drill.png'
  	}
  },
  ```
* Also Add these into ox\_inventory\modules\items\client.lua:

```lua
Item('nightvision', function(data, slot)
	TriggerEvent("zat-pacificrobbery:client:ToggleNV")
end)

Item('trolley', function(data, slot)
	local model = "hei_prop_hei_warehousetrolly"
	TriggerEvent("zat-pacificrobbery:client:PlaceTrolley", model)
end)
```

* 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.
* Add the images inside your inventory/html/images.
* Doorlocks :&#x20;
  * &#x20;QB : add the zat-pacificrobbery.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-pacificrobbery.
