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

# Installation

## Dependencies

The following dependencies listed below are required to the run this resource, without them, this resource will not work.

* ox\_inventory <https://github.com/overextended/ox_inventory>
* ox\_lib <https://github.com/overextended/ox_lib>

## Steps

1. Add the following line in `ox_inventory > data > animations.lua` within the `anim` section

   ```lua
   ['switch'] = { dict = 'mp_arresting', clip = 'a_uncuff' },
   ```
2. Copy and paste the following configuration into `ox_inventory > data > items.lua`

   ```lua
   ['switch'] = {
       label = 'Switch',
       weight = 200,
       stack = false,
       close = true,
       allowArmed = true,
       client = {
           anim = 'switch',
           usetime = 2500,
       },
       server = {
           export = 'vanish_switch.use_item_switch'
       }
   },
   ```
3. Download from keymaster and drag into your `resources` folder
4. Start the `vanish_switch`resource or ensure in the server.cfg
5. Ensure you have the dependencies needed to run the script
6. Configure the resource to your liking in the config.lua file
