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

# Installation

<details>

<summary>Dependencies</summary>

* [**ox-lib**](https://github.com/overextended/ox_lib/releases) (<mark style="color:red;">**REQUIRED**</mark><mark style="color:blue;">!</mark>)
* [**ox\_target** ](https://github.com/overextended/ox_target/releases/)(<mark style="color:green;">**OPEN FILE**</mark> is adaptable to any qb-target, qtarget, and so on.)
* [**ox\_inventory**](https://github.com/HadeJude/ox_inventory) (<mark style="color:green;">**SPECIAL FEATURES**</mark> have been added to this edition. Not necessary)
* [**interact**](https://github.com/HadeJude/refine-interact) (If using the <mark style="color:green;">**TARGET SYSTEM**</mark>, you won't need this.)

</details>

<details>

<summary>STEP  1: Remove Unnecessary Line, File</summary>

* Navigate to <mark style="color:blue;">`fxmanifest.lua`</mark> and remove any unnecessary framework.
  * ESX: Remove this Line

    <pre class="language-lua"><code class="lang-lua">'@qbx_core/modules/playerdata.lua'
    '@qbx_core/modules/lib.lua'
    <strong>'client/qbox.lua'
    </strong>'client/qb.lua'
    'server/qbox.lua'
    'server/qb.lua'
    </code></pre>
  * ESX: Remove this File

    ```
    esx_ambulancejob
    ```
  * QB-Core: Remove this Line

    ```lua
    '@qbx_core/modules/playerdata.lua'
    '@qbx_core/modules/lib.lua'
    'client/qbox.lua'
    'client/esx.lua'
    'server/qbox.lua'
    'server/esx.lua'
    ```
  * QB-Core: Remove this File

    ```
    qb_ambulancejob
    ```
  * QBox: Remove this Line

    ```lua
    'client/esx.lua'
    'client/qb.lua'
    'server/esx.lua'
    'server/qb.lua'
    ```
  * QBox: Remove this File

    ```
    qbx_ambulancejob
    qbx_medical
    ```

</details>

<details>

<summary>Step 2: Modify Folder</summary>

* Check the <mark style="color:purple;">**Asset Folder**</mark> for Image, Inventory Items, Database. Note: SQL is only for **ESX**
* Add Images and Necessary Items to the Inventory
* If you are using [**REFINE-LASTSTAND**](https://refined.tebex.io/package/6276435) all you have to do is run it; no changes are required.
* If you are <mark style="color:red;">**not**</mark> using my  modified [**OX\_INVENTORY**](https://github.com/HadeJude/ox_inventory) then you need to do this

  <pre class="language-lua"><code class="lang-lua"><strong>#Ox_Inventory Fix 
  </strong>    * Go to `ox_inventory>client.lua`
      * Find `canOpenInventory()` 
       
  ## Example_Ox
  from this:
  ```lua
      if PlayerData.dead or IsPedFatallyInjured(playerPed) then
          return shared.info('cannot open inventory', '(fatal injury)')
      end
  ```
  to this:
  ```lua
      if PlayerData.dead then
          return shared.info('cannot open inventory', '(fatal injury)')
      end
  ```
  </code></pre>

</details>

<details>

<summary>Step 3: Configuration</summary>

Reminder:&#x20;

* You can use **`/bedcoord`** command for developer mode. [**Video**](https://www.youtube.com/watch?v=byLDofC1rbk\&t=234s) on how to use it
* Don't forget to edit `Config.Framework` & `Config.OxInventory`
* For **Addon-Weapons** don't forget to add in `Config.WeaponDmg` & `Config.Weapons`

</details>
