# Adapt Framework

***

## Integrate your framework.

* Let's go inside the <mark style="background-color:yellow;">**wais-bodycamv2**</mark> folder and open the <mark style="background-color:yellow;">**Config.lua**</mark> file with an editor.
* Change the <mark style="background-color:yellow;">**Config.Framework**</mark> variables in the Config file.
* What to write for the Framework variable.
  * If you are using ESX, the Framework variable should be: <mark style="background-color:yellow;">**\["Framework"] = "esx",**</mark>
* ResourceName is the script name of the framework you are using. For example: qb-core, es\_extended.
  * This is the case if you are using ESX: <mark style="background-color:yellow;">**\["ResourceName"] = "es\_extended",**</mark>
  * This is the case if you are using QBCore: <mark style="background-color:yellow;">**\["ResourceName"] = "qb-core",**</mark>
* If your infrastructure is new, the **`NewCore`** variable must be **`@true`**, if not, it must be **`@false`**. ESX Legacy and QBCore are newcore.
* If you are using SharedEvent old core, you can find and paste the shared event from any script or from the infrastructure itself. This is important.

```lua
Config.Framework = {
    ["Framework"] = "esx", -- esx or qbcore
    ["ResourceName"] = "es_extended", -- es_extended or qb-core or your resource name
    ["NewCore"] = true, -- If you use the new core, set this to true ( esx or qb ). If you are using the old one, make it false and edit the event below according to yourself.
    ["SharedEvent"] = "esx:getSharedObject" -- Event name for old cores.
}
```

```lua
Config.Framework = {
    ["Framework"] = "qbcore", -- esx or qbcore
    ["ResourceName"] = "qb-core", -- es_extended or qb-core or your resource name
    ["NewCore"] = true, -- If you use the new core, set this to true ( esx or qb ). If you are using the old one, make it false and edit the event below according to yourself.
    ["SharedEvent"] = "qb-core:getSharedObject" -- Event name for old cores.
}
```

{% hint style="danger" %}
If the name of the **core** script is different, replace the value of the `[“ResourceName”]` variable with the script name

`[“ResourceName”] = "your core resources name"`
{% endhint %}
