# Installation/Configuration

## Installing Dependencies

Make sure you install the latest versions and follow the documentation of the scripts, the evidence boxes script needs to start after all the dependencies start!

1. [ox\_lib](https://github.com/overextended/ox_lib)
2. [ox\_target](https://github.com/overextended/ox_target)
3. [ox\_inventory](https://github.com/overextended/ox_inventory)

## Configurating The Script

Here is the default config file, in case you want to reset it.&#x20;

The things which you should configure first are the locations and the jobs, locations are where the boxes spawn at, in the default config the locations are in the default MRPD station. Next changing the jobs, as if the players don't have the needed jobs they cannot open the boxes.

{% code title="config.lua" %}

```lua
Config = {}

Config.Debug = false -- Toggle debug - true / false

Config.Model = `v_res_filebox01` -- The model of the evidence box

Config.BoxLocations = { -- Where the boxes are created at
   [1] = { coords = vector4(462.2334, -1003.0744, 24.9148, 270.2914) },
   [2] = { coords = vector4(462.3722, -999.7912, 24.9149, 270.2914) },
   [3] = { coords = vector4(462.2588, -995.8603, 24.9149, 270.2914) }
}

Config.StashLabel = 'CPZ Box %s' -- The name when the stash is open
Config.StashSlots = 50 -- Number of slots in the stash
Config.StashWeight = 50000 -- Max weight of the items inside the stash, 1000 = 1kg
Config.AccessJobs =  {['police'] = 0, ['usa'] = 0} -- The jobs that can open the boxes // Reccomended to set to your police job

-- Target Configuration
Config.TargetIcon = 'fa-solid fa-box'
Config.TargetLabel = 'Open CPZ Box: %s'
Config.TargetDistance = 5
```

{% endcode %}
